diff options
author | Matt McCoy <mattnenterprise@yahoo.com> | 2015-01-07 18:42:06 -0500 |
---|---|---|
committer | Matt McCoy <matt.mccoy@threewide.com> | 2015-01-07 18:52:41 -0500 |
commit | 85df7f0d6f4f66ad64130ecb09225bb94377737d (patch) | |
tree | a91a97b7fffcabdde988e7664dcd7da093fe7c31 /components/script/dom/mouseevent.rs | |
parent | cf616b90a236f88058dbad74b568b4d4379d2829 (diff) | |
download | servo-85df7f0d6f4f66ad64130ecb09225bb94377737d.tar.gz servo-85df7f0d6f4f66ad64130ecb09225bb94377737d.zip |
Fixes #4164 Make Constructor and new functions take GlobalRef by value
Diffstat (limited to 'components/script/dom/mouseevent.rs')
-rw-r--r-- | components/script/dom/mouseevent.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/mouseevent.rs b/components/script/dom/mouseevent.rs index 086137a25af..76c785ee4eb 100644 --- a/components/script/dom/mouseevent.rs +++ b/components/script/dom/mouseevent.rs @@ -86,7 +86,7 @@ impl MouseEvent { Temporary::from_rooted(ev.r()) } - pub fn Constructor(global: &GlobalRef, + pub fn Constructor(global: GlobalRef, type_: DOMString, init: &MouseEventBinding::MouseEventInit) -> Fallible<Temporary<MouseEvent>> { let event = MouseEvent::new(global.as_window(), type_, |