WLEvent.unregisterScope()
Overview
Remove the function from the specified scope.
Format
WLEvent.unregisterScope(scope, reference);
Parameter | Description | Type | Required |
---|---|---|---|
scope | The name of the scope for which the specified registration will be removed. | String | Required |
reference | The reference object returned for WLEvent.register(). | Object | Required |
Example
Copy
/* The onError function is removed from the "session" scope.
*/
WLEvent.unregisterScope("session", onErrorReference);