Methods
# addEventListener(type, listener) → {void}
Add event listener for custom event dispatchers.
Parameters:
Name | Type | Description |
---|---|---|
type |
string
|
the type of event |
listener |
function
|
the listener callback |
void
# dispatchEvent(event) → {void}
Dispatch custom event.
Parameters:
Name | Type | Description |
---|---|---|
event |
Object
|
void
# hasEventListener(type, listener) → {boolean}
Check to see if listener exists.
Parameters:
Name | Type | Description |
---|---|---|
type |
string
|
the type of event |
listener |
function
|
the listener callback |
boolean
# removeEventListener(type, listener) → {void}
Remove event listener.
Parameters:
Name | Type | Description |
---|---|---|
type |
string
|
the type of event |
listener |
function
|
the listener callback |
void