Class: EventDispatcher

flowchart. EventDispatcher

Class used to make communicate each other different objects

new EventDispatcher()

Event dispatcher Object

Source:

Methods

emit(evt_name, params)

Emits an event

Parameters:
Name Type Description
evt_name String The event name
params Object Object parameter to be passed to the invoked function listening to the event
Source:
Returns:
void

register(evt_name, bind, callback)

Registers a listener

Parameters:
Name Type Description
evt_name String The event name
bind Mixed The context passed to the callback function
callback Function Function executed when the event occurres, the event name and an object of properties are the arguiments passed to the function.
Source:
Returns:
void