diff options
Diffstat (limited to 'components/script/dom/location.rs')
-rw-r--r-- | components/script/dom/location.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/location.rs b/components/script/dom/location.rs index 8217c91e4f6..0b13916aaea 100644 --- a/components/script/dom/location.rs +++ b/components/script/dom/location.rs @@ -38,15 +38,15 @@ impl Location { } impl<'a> LocationMethods for JSRef<'a, Location> { - fn Href(&self) -> DOMString { + fn Href(self) -> DOMString { UrlHelper::Href(&self.page.get_url()) } - fn Search(&self) -> DOMString { + fn Search(self) -> DOMString { UrlHelper::Search(&self.page.get_url()) } - fn Hash(&self) -> DOMString { + fn Hash(self) -> DOMString { UrlHelper::Hash(&self.page.get_url()) } } |