aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/location.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/location.rs')
-rw-r--r--src/components/script/dom/location.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/location.rs b/src/components/script/dom/location.rs
index 36a58a4a7ec..d8a1fac08c0 100644
--- a/src/components/script/dom/location.rs
+++ b/src/components/script/dom/location.rs
@@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::Bindings::LocationBinding;
+use dom::bindings::global::Window;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::window::Window;
@@ -30,7 +31,7 @@ impl Location {
pub fn new(window: &JSRef<Window>, page: Rc<Page>) -> Temporary<Location> {
reflect_dom_object(box Location::new_inherited(page),
- window,
+ &Window(*window),
LocationBinding::Wrap)
}
}