Events::getAllOf
This function gets all handlers of the specified event.
Parameters
- eventName: String
Return value
- Array: Function
Syntax
let handlers = mp.events.getAllOf(eventName);
Example
Server-Side
The example below gets all handlers of "myEvent".
eventHandlers = mp.events.getAllOf('myEvent');