mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
parent
b589735b47
commit
cc48797999
8 changed files with 24 additions and 21 deletions
|
@ -257,7 +257,7 @@ impl<'a> HTMLScriptElementHelpers for JSRef<'a, HTMLScriptElement> {
|
|||
ScriptOrigin::Internal => {
|
||||
let chan = window.script_chan();
|
||||
let handler = Trusted::new(window.get_cx(), self, chan.clone());
|
||||
chan.send(ScriptMsg::RunnableMsg(box handler));
|
||||
chan.send(ScriptMsg::RunnableMsg(box handler)).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -268,7 +268,7 @@ 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());
|
||||
chan.send(ScriptMsg::RunnableMsg(box handler));
|
||||
chan.send(ScriptMsg::RunnableMsg(box handler)).unwrap();
|
||||
}
|
||||
|
||||
fn dispatch_load_event(self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue