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

@ -314,7 +314,7 @@ impl HTMLScriptElement {
sender: action_sender,
};
ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
listener.notify(message.to().unwrap());
listener.notify_action(message.to().unwrap());
});
doc.load_async(LoadType::Script(url), response_target);