event.emit
emit(eventName: string | symbol) → {boolean}
calls each of the listeners registered for a given event.
me.event.emit("event-name", a, b, c);
Name | Type | Attributes | Description |
---|---|---|---|
eventName | string | symbol |
The event name. |
|
...arguments | object |
<optional> |
arguments to be passed to all listeners |
Type | Description |
---|---|
boolean |
true if the event had listeners, false otherwise. |