Skip to content

Evented

Extended by

Constructors

new Evented()

new Evented(): Evented

Returns

Evented

Properties

bindings

bindings: Bindings

Source

evented.ts:11

Methods

off()

off(event, handler): Evented

Removes an event listener for the given event string.

Parameters

event: string

handler: AnyHandler

Returns

Evented

Source

evented.ts:53


on()

on(event, handler, ctx?, once?): Evented

Adds an event listener for the given event string.

Parameters

event: string

handler: AnyHandler

ctx?: unknown

once?: boolean= false

Returns

Evented

Source

evented.ts:22


once()

once(event, handler, ctx?): Evented

Adds an event listener that only fires once for the given event string.

Parameters

event: string

handler: AnyHandler

ctx?: unknown

Returns

Evented

Source

evented.ts:42


trigger()

trigger(event, …args): Evented

Triggers an event listener for the given event string.

Parameters

event: string

• …args: any[]

Returns

Evented

Source

evented.ts:78