diff options
author | Cameron Zwarich <zwarich@mozilla.com> | 2014-09-20 12:55:21 -0700 |
---|---|---|
committer | Cameron Zwarich <zwarich@mozilla.com> | 2014-09-20 12:55:21 -0700 |
commit | d6ba37c68c34a3748a789caeca225083275757e5 (patch) | |
tree | f7d0a43047979744a3ef2490db1cdaf907870ea1 /components/script/dom/htmlbodyelement.rs | |
parent | 545e9884a6907f04814c6008699c2bbcfef22edd (diff) | |
parent | 8aec08074c1535d2c8c9d3bb2208c6f83b82114e (diff) | |
download | servo-d6ba37c68c34a3748a789caeca225083275757e5.tar.gz servo-d6ba37c68c34a3748a789caeca225083275757e5.zip |
Merge pull request #3433 from zwarich/jsref-self-helpers
More progress in the &JSRef -> JSRef conversion
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 8 |
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) } } |