new EventDispatcher()
Event dispatcher Object
- Source:
- flowchart/js/flowchart.js, line 24
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:
- flowchart/js/flowchart.js, line 49
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:
- flowchart/js/flowchart.js, line 35
Returns:
void