mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
parent
439e3150d7
commit
ccc55d658f
7 changed files with 19 additions and 17 deletions
|
@ -359,10 +359,10 @@ impl<'a> HTMLScriptElementHelpers for JSRef<'a, HTMLScriptElement> {
|
|||
} else {
|
||||
let chan = window.r().script_chan();
|
||||
let handler = Trusted::new(window.r().get_cx(), self, chan.clone());
|
||||
let dispatcher = Box::new(EventDispatcher {
|
||||
let dispatcher = box EventDispatcher {
|
||||
element: handler,
|
||||
is_error: false,
|
||||
});
|
||||
};
|
||||
chan.send(ScriptMsg::RunnableMsg(dispatcher)).unwrap();
|
||||
}
|
||||
}
|
||||
|
@ -372,10 +372,10 @@ impl<'a> HTMLScriptElementHelpers for JSRef<'a, HTMLScriptElement> {
|
|||
let window = window.r();
|
||||
let chan = window.script_chan();
|
||||
let handler = Trusted::new(window.get_cx(), self, chan.clone());
|
||||
let dispatcher = Box::new(EventDispatcher {
|
||||
let dispatcher = box EventDispatcher {
|
||||
element: handler,
|
||||
is_error: true,
|
||||
});
|
||||
};
|
||||
chan.send(ScriptMsg::RunnableMsg(dispatcher)).unwrap();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue