Rename various bindings in event dispatching

This commit is contained in:
Anthony Ramine 2016-02-29 10:35:37 +01:00 committed by Ms2ger
parent fc2cf31d5a
commit 4d2587d6c3
2 changed files with 20 additions and 19 deletions

View file

@ -303,10 +303,10 @@ impl EventTarget {
pub fn get_listeners_for(&self,
type_: &Atom,
desired_phase: Option<ListenerPhase>)
specific_phase: Option<ListenerPhase>)
-> Vec<CompiledEventListener> {
self.handlers.borrow_mut().get_mut(type_).map_or(vec![], |listeners| {
listeners.get_listeners(desired_phase, self, type_)
listeners.get_listeners(specific_phase, self, type_)
})
}