API / geotoolkit / flowcharts / utils / LiteEvent / LiteEvent
A simple and lite event emitter that represents a collection of functions that will be invoked upon trigger() call
Constructors
Methods
▸ off(handler): void
Unsubscribes a handler from the event
| Name | Type | Description |
|---|---|---|
handler | Handler | function handler |
void
▸ on(handler): void
Subscribes a handler to the event
| Name | Type | Description |
|---|---|---|
handler | Handler | function handler |
void
▸ trigger(data): void
Emits an event with the specified data
| Name | Type | Description |
|---|---|---|
data | Node[] | event data that will be passed to all subscribed event handlers |
void