mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename various bindings in event dispatching
This commit is contained in:
parent
fc2cf31d5a
commit
4d2587d6c3
2 changed files with 20 additions and 19 deletions
|
@ -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_)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue