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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/location.rs b/src/components/script/dom/location.rs
index fa0aaf103d7..762da0a383b 100644
--- a/src/components/script/dom/location.rs
+++ b/src/components/script/dom/location.rs
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::BindingDeclarations::LocationBinding;
-use dom::bindings::js::{JS, JSRef};
+use dom::bindings::js::{JSRef, Unrooted};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::bindings::error::Fallible;
use dom::window::Window;
@@ -29,7 +29,7 @@ impl Location {
}
}
- pub fn new(window: &JSRef<Window>, page: Rc<Page>) -> JS<Location> {
+ pub fn new(window: &JSRef<Window>, page: Rc<Page>) -> Unrooted<Location> {
reflect_dom_object(~Location::new_inherited(page),
window,
LocationBinding::Wrap)