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);
Parameters:
Name Type Attributes Description
eventName string | symbol

The event name.

...arguments object

<optional>

arguments to be passed to all listeners

Returns:
Type Description
boolean

true if the event had listeners, false otherwise.

Powered by webdoc!