Feedback Aide API Methods
off()
Unregisters an event listener for the specified event.
You would want to use this to stop executing a callback function whenever the specified event is triggered.
Examples
const saveSuccessCallback = function () {
console.log('save succeeded');
};
// Using the feedback session instance
feedbackSession.off('save:success', saveSuccessCallback);
// Using the session UI instance
sessionUI.off('save:success', saveSuccessCallback);
Arguments
-
event string
The name of the event to stop listening to.
-
callback function
The function that was previously registered as the callback for the event.
Return value
None (undefined).