- Preparing search index...
- The search index is not available
live-js
Properties
Protected
_listeners
_listeners
: { [ K in string | number | symbol]?: EventListener<T[K]>[] } = {}
off
Type declaration
-
- <K>(type: K, callback: EventListener<T[K]>): void
-
Type Parameters
-
K extends string | number | symbol
Returns void
on
on
: (<K>(type
: K, callback
: EventListener<T[K]>) => (() => void)) = ...
Type declaration
-
- <K>(type: K, callback: EventListener<T[K]>): (() => void)
-
Type Parameters
-
K extends string | number | symbol
Returns (() => void)
Methods
Protected
_dispatchEvent
- _dispatchEvent<K>(type: K, ...args: ArgsType<T[K]>): void
-
Type Parameters
-
K extends string | number | symbol
Returns void
addEventListener
- addEventListener<K>(type: K, callback: EventListener<T[K]>): (() => void)
-
Type Parameters
-
K extends string | number | symbol
Returns (() => void)
once
- once<K>(type: K, givenCb: EventListener<T[K]>): (() => void)
-
Type Parameters
-
K extends string | number | symbol
Returns (() => void)
removeAllEventListeners
- removeAllEventListeners(): void
-
Returns void
removeEventListener
- removeEventListener<K>(type: K, callback: EventListener<T[K]>): void
-
Type Parameters
-
K extends string | number | symbol
Returns void