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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/location.rs b/src/components/script/dom/location.rs
index c1d8d439bb8..2e346effb12 100644
--- a/src/components/script/dom/location.rs
+++ b/src/components/script/dom/location.rs
@@ -30,7 +30,7 @@ impl Location {
}
pub fn new(window: &JSRef<Window>, page: Rc<Page>) -> Temporary<Location> {
- reflect_dom_object(~Location::new_inherited(page),
+ reflect_dom_object(box Location::new_inherited(page),
window,
LocationBinding::Wrap)
}