Events
Class EventTarget
Base class for event management.
Method .off (events: string, fn: EventCallback): void
Removes an event listener from one or more events.
Name | Type | Default | Description |
---|---|---|---|
events | string | ||
fn | EventCallback |
Method .on (events: string, fn: EventCallback): void
Adds an event listener for one or more events.
Name | Type | Default | Description |
---|---|---|---|
events | string | ||
fn | EventCallback |
Method .one (events: string, fn: EventCallback): void
Adds a one-time event listener to one or more events.
Name | Type | Default | Description |
---|---|---|---|
events | string | ||
fn | EventCallback |