Methods
# addEventListener(event, listener)
Add an event listener.
Parameters:
Name | Type | Description |
---|---|---|
event |
string
|
Name of event |
listener |
function
|
Function to execute |
# dispatchEvent(event, data)
Dispatch an event.
Parameters:
Name | Type | Description |
---|---|---|
event |
string
|
Name of event |
data |
object
|
Data to bind to an event |
# removeEventListener(event, listener)
Remove an event listener.
Parameters:
Name | Type | Description |
---|---|---|
event |
string
|
Name of event |
listener |
function
|
Function to execute |