Core.Web.Event
Capturing/Bubbling Listeners:
This implementation additionally allows for the registration of capturing and bubbling event
listeners that work even on Internet Explorer platforms, where they are not natively supported.
This implementation relies on the fact that all event listeners will be registered
through it.
Class Method Summary | |
---|---|
Public | add() Registers an event handler. |
Internal | _processEvent() Listener method which is invoked when ANY event registered with the event processor occurs. |
Public | remove() Unregisters an event handler. |
Public | removeAll() Unregister all event handlers from a specific element. |
Internal | _removeAllImpl() Implementation method for removeAll(). |
Public | toString() toString() implementation for debugging purposes. |
element
(Element)
- the DOM element on which to add the event handlereventType
(String)
- the DOM event typeeventTarget
(Function)
- the event handler to invoke when the event is firedcapture
(Boolean)
- true to fire the event during the capturing phase, false to fire the event during
the bubbling phasee
(Event)
- element
(Element)
- the DOM element on which to add the event handlereventType
(String)
- the DOM event typeeventTarget
(Function)
- the function to invoke when the event is firedcapture
(Boolean)
- true to fire the event during the capturing phase, false to fire the event during
the bubbling phaseelement
(Element)
- the elementelement
(Element)
- the elementlistenerMap
(Core.Arrays.LargeMap)
- the map from which the listeners should be removed, either
Core.Web.Event._capturingListenerMap or Core.Web.Event._bubblingListenerMap