aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbodyelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r--components/script/dom/htmlbodyelement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs
index 96728eaa3f6..efdf4065145 100644
--- a/components/script/dom/htmlbodyelement.rs
+++ b/components/script/dom/htmlbodyelement.rs
@@ -47,13 +47,13 @@ impl HTMLBodyElement {
}
impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
- fn GetOnunload(&self) -> Option<EventHandlerNonNull> {
- let win = window_from_node(*self).root();
+ fn GetOnunload(self) -> Option<EventHandlerNonNull> {
+ let win = window_from_node(self).root();
win.deref().GetOnunload()
}
- fn SetOnunload(&self, listener: Option<EventHandlerNonNull>) {
- let win = window_from_node(*self).root();
+ fn SetOnunload(self, listener: Option<EventHandlerNonNull>) {
+ let win = window_from_node(self).root();
win.deref().SetOnunload(listener)
}
}