.off()

Previous Next

Removes a handler from an event (in the same way as in the jQuery implementation).

Returns the 'this' object.

Syntax

.off( eventTypehandler(event) )

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

The required handler(event) is a function that identifies the entry to be removed.

 

Example

function OnCommit(event,options){
 if(options.success)alert('Succeeded!');

}

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

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

 

See Also

.on()