Stop listening for events on an object.
can.off.call(target, eventName, handler)
The object that emits events.
The name of the event to listen for.
The function to unbind.
can.off(eventName, handler)is an alias for
can.unbind(eventName, handler)and unbinds a callback handler from an object for a given event. It works on:
The idea is that
can.unbindcan be used on anything that produces events and it will figure out the appropriate way to unbind to it. Typically,
can.offis only used internally to CanJS; however, if you are making libraries or extensions, use
can.onto listen to events independent of the underlying library.
Binding/unbinding to an object
Binding/unbinding to an HTMLElement