Class: Observable

Observable

Observable

Instanciates objects that are able to emit events


new Observable()

Methods


<static> getAvailableEvents()

Returns available events for this class

Returns:
Type
Array.<string>

on(listener)

Adds a listener to a Observable event

Parameters:
Name Type Description
listener function
Returns:

this instance for chaining

Type
Observable

removeListener(eventType, listener)

Remove existing listener to Observable event

Parameters:
Name Type Description
eventType String
listener function
Returns:

this instance for chaining

Type
Observable