Skip to content

Events

Extended by

Constructors

new Events()

new Events(): Events

Returns

Events

Methods

off()

off(name, callback): void

Parameters

name: string

callback

Returns

void


offref()

offref(ref): void

Parameters

ref: EventRef

Returns

void


on()

on(name, callback, ctx?): EventRef

Parameters

name: string

callback

ctx?: any

Returns

EventRef


trigger()

trigger(name, …data): void

Parameters

name: string

• …data: unknown[]

Returns

void


tryTrigger()

tryTrigger(evt, args): void

Parameters

evt: EventRef

args: unknown[]

Returns

void