Type Parameters
T extends {
[K in keyof T]: ((...args) => any)
}
Constructors
constructor
- new EventEmitter<T>(): Ace.EventEmitter<T>
Type Parameters
T extends {
[K in string | number | symbol]: ((...args) => any)
}
Methods
addEventListener
- addEventListener<K>(name, callback, capturing?): T[K]
Type Parameters
K extends string | number | symbol
Parameters
name: K
callback: T[K]
Optional
capturing: boolean
Returns T[K]
off
- off<K>(name, callback): void
Type Parameters
K extends string | number | symbol
Returns void
on
- on<K>(name, callback, capturing?): T[K]
Type Parameters
K extends string | number | symbol
Parameters
name: K
callback: T[K]
Optional
capturing: boolean
Returns T[K]
once
- once<K>(name, callback): void
Type Parameters
K extends string | number | symbol
Returns void
removeAllListeners
- removeAllListeners(name?): void
Returns void
removeDefaultHandler
- removeDefaultHandler(name, callback): void
Parameters
name: string
callback: Function
Returns void
removeEventListener
- removeEventListener<K>(name, callback): void
Type Parameters
K extends string | number | symbol
Returns void
removeListener
- removeListener<K>(name, callback): void
Type Parameters
K extends string | number | symbol
Returns void
setDefaultHandler
- setDefaultHandler(name, callback): void
Parameters
name: string
callback: Function
Returns void