diff options
author | Michael Wu <mwu@mozilla.com> | 2015-09-23 16:53:03 -0400 |
---|---|---|
committer | Michael Wu <mwu@mozilla.com> | 2015-10-14 15:30:52 -0400 |
commit | e733a7c46a5d14a1be219e76136cdcb2d678d33a (patch) | |
tree | 7a50317a6cfa109eb3a7049add9ad87597dac55e /components/script/dom/customevent.rs | |
parent | 32daa17d5cbcad02db0713e21e52410cdc60480e (diff) | |
download | servo-e733a7c46a5d14a1be219e76136cdcb2d678d33a.tar.gz servo-e733a7c46a5d14a1be219e76136cdcb2d678d33a.zip |
Support the updated spidermonkey bindings
Diffstat (limited to 'components/script/dom/customevent.rs')
-rw-r--r-- | components/script/dom/customevent.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/customevent.rs b/components/script/dom/customevent.rs index f865d49ebd6..05c905056ab 100644 --- a/components/script/dom/customevent.rs +++ b/components/script/dom/customevent.rs @@ -51,6 +51,7 @@ impl CustomEvent { ev.r().InitCustomEvent(global.get_cx(), type_, bubbles, cancelable, detail); ev } + #[allow(unsafe_code)] pub fn Constructor(global: GlobalRef, type_: DOMString, init: &CustomEventBinding::CustomEventInit) -> Fallible<Root<CustomEvent>>{ @@ -58,7 +59,7 @@ impl CustomEvent { type_, init.parent.bubbles, init.parent.cancelable, - HandleValue { ptr: &init.detail })) + unsafe { HandleValue::from_marked_location(&init.detail) })) } } |