WLEvent.off()
Overview
Remove an event handler for the current or specified scope.
Format
WLEvent.off(eventName, funcRef, scope);
| Parameter | Description | Type | Required | Notes |
|---|---|---|---|---|
| eventName | The name of the event. | String | Required | |
| funcRef | The function that was registered and should be removed. | Function | Optional | If no value is provided, then all handlers for the event are removed. |
| scope | The scope the event is removed from. | String | Optional | If no value is provided, the current scope is used. |
Example
Copy
/* The session scan event for myFunction is removed from the
* event handlers.
*/
WLEvent.off("Scan", myFunction, "session");