off()
Removes a previously-bound callback function for an event.
When called with no arguments, all event listeners are removed.
If no eventCallback is provided, all event handlers for the eventName will be removed.
If no context is provided, all event bindings for the eventName, callback combination will be removed.
Arguments
-
eventName stringName of the event that you want to stop listening to
-
eventCallback callbackIf no callback is provided, all event handlers for the eventName will be removed.
-
context objectIf no context is provided, all event bindings for the eventName, eventCallback combination will be removed
Return value
None (undefined
).