EventBusImpl

event/EventBusImpl~ EventBusImpl

Helper for custom events. It offers public methods for firing custom events and two methods for catching events (e.g. inside view components).

Constructor

new EventBusImpl(window)

Source:
Initializes the custom event helper.
Parameters:
Name Type Description
window Window The IMA window helper.

Members

_allEventListeners :WeakMap.<EventTarget, WeakSet.<function(Event)>>

Source:
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)>>>

Source:
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

Source:
The IMA window helper.
Type:
  • Window

Methods

fire()

Source:

listen()

Source:

listenAll()

Source:

unlisten()

Source:

unlistenAll()

Source: