Class

AdmEventEmitter

AdmEventEmitter()

---------------------------------------------------------------------------------------------- Class AdmEventEmitter - Handling app events ----------------------------------------------------------------------------------------------
Constructor

# new AdmEventEmitter()

Create a EventEmitter instance.

View Source event/AdmEventEmitter.js, line 8

Methods

# addListener(name, listener) → {object}

Add an event listener.
Parameters:
Name Type Description
name string Event name
listener function Event handler

View Source event/AdmEventEmitter.js, line 23

The emitter instance
object

# emit(name, data)

emit a route.
Parameters:
Name Type Description
name string Event name
data anonym Event data

View Source event/AdmEventEmitter.js, line 50

# removeListener(name, listener) → {object}

Remove a route.
Parameters:
Name Type Description
name string Event name
listener function Event handler

View Source event/AdmEventEmitter.js, line 37

The emitter instance
object