Methods
Private __ev_filter__
-
Parameters
-
Optional type: string | null
-
Optional handler: Function
-
Private __ev_listener_remover__
emit
- emit<K>(type: K, payload?: undefined | EventMap[K]): void
-
Type parameters
Parameters
-
type: K
-
Optional payload: undefined | EventMap[K]
Returns void
off
- off<K>(type: K): void
- off<K>(type: K, handler: function): void
- off<K>(type: K, option: object): void
- off<K>(handler: function): void
- off<K>(option: object): void
-
Type parameters
Parameters
Returns void
-
Type parameters
Parameters
-
type: K
-
handler: function
Returns void
-
Type parameters
Parameters
-
type: K
-
option: object
-
Optional handler?: undefined | function
-
Returns void
-
Type parameters
Parameters
Returns void
-
Type parameters
Parameters
-
option: object
-
Optional handler?: undefined | function
-
-
Optional type?: K
Returns void
on
-
Type parameters
Parameters
-
type: K
-
handler: function
-
Type parameters
Parameters
-
type: K
-
handler: function
-
option: object
-
-
Optional once?: undefined | false | true
-
-
Type parameters
Parameters
-
type: K
-
handler: function
-
option: object
-
Optional once: undefined | false | true
-
Type parameters
Parameters
-
type: K
-
option: object
-
handler: function
-
-
Optional once?: undefined | false | true
-
-
Type parameters
Parameters
-
option: object
-
handler: function
-
-
Optional once?: undefined | false | true
-
-
type: K
once
-
Type parameters
Parameters
-
type: K
-
handler: function
-
Type parameters
Parameters
-
type: K
-
handler: function
-
option: object
-
Type parameters
Parameters
-
Type parameters
Parameters
-
option: object
-
handler: function
-
-
-
type: K
The context class for event operations.
You can use as it is or inherit any classes in this class.
When using it with TypeScript, it is possible to strictly set type information by specifying an interface in Generics.