new EventBusImpl(window)
Initializes the custom event helper.
Parameters:
Name | Type | Description |
---|---|---|
window |
Window | The IMA window helper. |
Members
-
_allEventListeners :WeakMap.<EventTarget, WeakSet.<function(Event)>>
-
Map of event targets to listeners executed on all IMA.js event bus events.
Type:
- WeakMap.<EventTarget, WeakSet.<function(Event)>>
-
_listeners :WeakMap.<function(Event), WeakMap.<EventTarget, Map.<string, function(Event)>>>
-
Map of listeners provided to the public API of this event bus to a map of event targets to a map of event names to actual listeners bound to the native API.
The "listen all" event listeners are not registered in this map.
Type:
- WeakMap.<function(Event), WeakMap.<EventTarget, Map.<string, function(Event)>>>
-
_window :Window
-
The IMA window helper.
Type:
Methods
-
fire()
-
-
listen()
-
-
listenAll()
-
-
unlisten()
-
-
unlistenAll()
-