Class

AdmEventBus

AdmEventBus()

---------------------------------------------------------------------------------------------- Class AdmEventBus - Handling app events with bus system ----------------------------------------------------------------------------------------------
Constructor

# new AdmEventBus()

Create a Event-Bus-System.

View Source event/AdmEventBus.js, line 8

Methods

# addEventListener(event, listener)

Add an event listener.
Parameters:
Name Type Description
event string Name of event
listener function Function to execute

View Source event/AdmEventBus.js, line 22

# dispatchEvent(event, data)

Dispatch an event.
Parameters:
Name Type Description
event string Name of event
data object Data to bind to an event

View Source event/AdmEventBus.js, line 40

# removeEventListener(event, listener)

Remove an event listener.
Parameters:
Name Type Description
event string Name of event
listener function Function to execute

View Source event/AdmEventBus.js, line 31