off - Methods - Feedback Aide API

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')
};
feedbackSession.off('save:success', saveSuccessCallback);

Arguments

  • event string

    The name of the event to stop listening for.

  • callback function

    The function that was previously registered as the callback for the event.

Return value

None (undefined).

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.