off()
Removes a previously-bound callback function for an event.
When called with no parameters, callbacks for all events are removed.
Examples
//Removes callbacks for the 'focused' event.
assessApp.off("focused");
//Removes callbacks for all events.
assessApp.off();
Arguments
-
event_name stringName of the event that you want to stop listening to.
-
event_callback functionIf no callback is provided, all callbacks for the event_name will be removed.
-
context objectIf no context is provided, all callbacks for the event_name, event_callback combination will be removed.
Return value
None (undefined
).