interface EventEmitter { addEventListener(name,
callback,
capturing?): void; off(name,
callback): void; on(name,
callback,
capturing?): void; once(name,
callback): void; removeAllListeners(name?): void; removeDefaultHandler(name,
callback): void; removeEventListener(name,
callback): void; removeListener(name,
callback): void; setDefaultHandler(name,
callback): void; } Methods
addEventListener
- addEventListener(name, callback, capturing?): void
Parameters
name: string
callback: Function
Optional
capturing: boolean
Returns void
off
- off(name, callback): void
Parameters
name: string
callback: Function
Returns void
on
- on(name, callback, capturing?): void
Parameters
name: string
callback: Function
Optional
capturing: boolean
Returns void
once
- once(name, callback): void
Parameters
name: string
callback: Function
Returns void
removeAllListeners
- removeAllListeners(name?): void
Returns void
removeDefaultHandler
- removeDefaultHandler(name, callback): void
Parameters
name: string
callback: Function
Returns void
removeEventListener
- removeEventListener(name, callback): void
Parameters
name: string
callback: Function
Returns void
removeListener
- removeListener(name, callback): void
Parameters
name: string
callback: Function
Returns void
setDefaultHandler
- setDefaultHandler(name, callback): void
Parameters
name: string
callback: Function
Returns void