mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -302,7 +302,7 @@ impl XMLHttpRequest {
|
|||
sender: action_sender,
|
||||
};
|
||||
ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
|
||||
listener.notify(message.to().unwrap());
|
||||
listener.notify_action(message.to().unwrap());
|
||||
});
|
||||
core_resource_thread.send(Load(load_data, LoadConsumer::Listener(response_target), None)).unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue