Skip to main content
Version: 11.2

$.udb.off()

note

This article is about the off() function of the udb object.

$.udb.off()

Removes a handler from an event (in the same way as in the jQuery implementation) on application level of the web application.

Returns the UdbApplication object.

Syntax

$.udb.off( *eventType*, [handler(event)] )

The required eventType is a string that identifies the event to unbind. The possible values for the 'eventType' parameter are described in the Events reference section.

The optional handler(event) is a function that identifies the entry to be removed. If ommitted, all event handler for the given eventType are removed.

Examples

function OnCommit(event, options) {
if (options.success)
console.log('Commit succeeded');
else
console.warn('Commit failed');
}

$.udb.on('postcommit', OnCommit);
$.udb.off('postcommit', OnCommit);
$.udb.off('postcommit');