Interface EventDispatcher
Methods
off
- off(type: string, handler?: function): any
-
Parameters
-
type: string
-
Optional handler: function
Returns any
on
-
Parameters
-
type: string
-
handler: function
once
- once(type: string, handler: function): any
-
Parameters
-
type: string
-
handler: function
Returns any
Removes a
handler
from eventtype
. If no handler is provided, all handlers will be removed from the event