off()
Removes a previously-bound callback function for an event.
When called with no arguments, all event listeners are removed.
Examples
questionsApp.question('01-a__56732842-dbe1-47a6-ae48-5a126f2b13ba').off("changed");
//Removes event listeners for the 'changed' event.
questionsApp.question('my_response_id').off("changed");
//Removes event listeners for all events.
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 objectExecution context that will be used for
this
when the callback function is triggered. If no context is provided, all event bindings for the eventName, eventCallback combination will be removed.
Return value
None (undefined
).