Abstractify the Listener abstractions further

This commit is contained in:
Manish Goregaokar 2016-06-01 14:59:55 +05:30
parent 2cbc8dee25
commit d4f428ad95
7 changed files with 47 additions and 17 deletions

View file

@ -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();
}