Properties
_listeners
parent
Methods
addEventListener
- addEventListener(type: string, handler: ((data: any) => any), once?: boolean): void
Parameters
type: string
handler: ((data: any) => any)
Optional once: boolean
Returns void
dispatch
- dispatch(type: string, data?: any): void
Parameters
type: string
Optional data: any
Returns void
off
- off(type?: string, handler?: ((data: any) => any)): void
Parameters
Optional type: string
Optional handler: ((data: any) => any)
Returns void
on
- on(type: string, handler: ((data: any) => any), once?: boolean): void
Parameters
type: string
handler: ((data: any) => any)
Optional once: boolean
Returns void
removeEventListener
- removeEventListener(type?: string, handler?: ((data: any) => any), once?: boolean): void
Parameters
Optional type: string
Optional handler: ((data: any) => any)
Optional once: boolean
Returns void
EE