Classes

EventBusImpl

Helper for custom events.

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

Constants

IMA_EVENT : string

Global name of IMA.js custom event.

EventBusImpl 

Helper for custom events.

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

Kind: global class


new EventBusImpl(window) 

Initializes the custom event helper.

Param Type Description
window Window The IMA window helper.

eventBusImpl._window : Window 

The IMA window helper.

Kind: instance property of EventBusImpl


eventBusImpl._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.

Kind: instance property of EventBusImpl


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

Map of event targets to listeners executed on all IMA.js event bus events.

Kind: instance property of EventBusImpl


eventBusImpl.fire() 

Kind: instance method of EventBusImpl


eventBusImpl.listenAll() 

Kind: instance method of EventBusImpl


eventBusImpl.listen() 

Kind: instance method of EventBusImpl


eventBusImpl.unlistenAll() 

Kind: instance method of EventBusImpl


eventBusImpl.unlisten() 

Kind: instance method of EventBusImpl


IMA_EVENT : string 

Global name of IMA.js custom event.

Kind: global constant