new EventDispatcher(p_initial_events)
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
p_initial_events |
Object | null | An object containing default events that are to be dispatched whenever a corresponding event listener is added. |
Methods
-
addEventListener(p_type, p_callback)
-
Parameters:
Name Type Description p_typeString p_callbackfunction - Source:
-
dispatchEvent(p_event)
-
Parameters:
Name Type Description p_eventCustomEvent - Source:
Returns:
- Type
- Boolean
-
removeEventListener(p_type, p_callback)
-
Parameters:
Name Type Description p_typeString p_callbackfunction - Source: