diff options
Diffstat (limited to 'components/script/dom/eventtarget.rs')
-rw-r--r-- | components/script/dom/eventtarget.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/eventtarget.rs b/components/script/dom/eventtarget.rs index 7418efce422..f909d97e253 100644 --- a/components/script/dom/eventtarget.rs +++ b/components/script/dom/eventtarget.rs @@ -34,8 +34,9 @@ use dom::virtualmethods::VirtualMethods; use dom::window::Window; use dom_struct::dom_struct; use fnv::FnvHasher; -use js::jsapi::{CompileFunction, JS_GetFunctionObject, JSAutoCompartment, JSFunction}; +use js::jsapi::{JS_GetFunctionObject, JSAutoCompartment, JSFunction}; use js::rust::{AutoObjectVectorWrapper, CompileOptionsWrapper}; +use js::rust::wrappers::CompileFunction; use libc::{c_char, size_t}; use servo_atoms::Atom; use servo_url::ServoUrl; @@ -453,7 +454,7 @@ impl EventTarget { args.as_ptr(), body.as_ptr(), body.len() as size_t, - handler.handle_mut()) + handler.handle_mut().into()) }; if !rv || handler.get().is_null() { // Step 1.8.2 |