Backbone Tutorials

Off

offobject.off([event], [callback], [context])Alias: unbind

Take away a previously-bound callback perform from an object. If no
context is specified, the entire variations of the callback with
totally different contexts will probably be eliminated. If no
callback is specified, all callbacks for the occasion will probably be
eliminated. If no occasion is specified, callbacks for all events
will probably be eliminated.

// Removes simply the `onChange` callback.
object.off("change", onChange);

// Removes all "change" callbacks.
object.off("change");

// Removes the `onChange` callback for all events.
object.off(null, onChange);

// Removes all callbacks for `context` for all events.
object.off(null, null, context);

// Removes all callbacks on `object`.
object.off();

Word that calling model.off(), for instance, will certainly remove all events
on the model — together with events that Backbone makes use of for inner bookkeeping.