mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Abstractify the Listener abstractions further
This commit is contained in:
parent
2cbc8dee25
commit
d4f428ad95
7 changed files with 47 additions and 17 deletions
|
@ -1947,7 +1947,7 @@ impl ScriptThread {
|
|||
script_chan: self.chan.clone(),
|
||||
};
|
||||
ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
|
||||
listener.notify(message.to().unwrap());
|
||||
listener.notify_action(message.to().unwrap());
|
||||
});
|
||||
let response_target = AsyncResponseTarget {
|
||||
sender: action_sender,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue