Class

Dispatcher

Dispatcher()

Dispatcher base class
Constructor

# new Dispatcher()

View Source browser/lib/Events/Dispatcher.js, line 6

Methods

# addEventListener(type, listener) → {void}

Add event listener for custom event dispatchers.
Parameters:
Name Type Description
type string the type of event
listener function the listener callback

View Source browser/lib/Events/Dispatcher.js, line 16

void

# dispatchEvent(event) → {void}

Dispatch custom event.
Parameters:
Name Type Description
event Object

View Source browser/lib/Events/Dispatcher.js, line 69

void

# hasEventListener(type, listener) → {boolean}

Check to see if listener exists.
Parameters:
Name Type Description
type string the type of event
listener function the listener callback

View Source browser/lib/Events/Dispatcher.js, line 36

boolean

# removeEventListener(type, listener) → {void}

Remove event listener.
Parameters:
Name Type Description
type string the type of event
listener function the listener callback

View Source browser/lib/Events/Dispatcher.js, line 50

void