OFF

Detaches an event handler set by ON.

Parameters

event string (required) - The event name

callback function (required) - The function to detach

Examples

OFF('validate-record', callback)

// Detaches an event handler from the validate-record event
OFF('validate-record')

// Detaches all event handlers listening to the 'validate-record' event