removeEventListener
obj.removeEventListener(event, handler)
Removes a basic event listener from an object. Don't pass arguments to remove all event listeners.
Parameters
- event
{String}
:The name of the event to remove. If not specified, all events are removed.
- handler
{function}
:The handler that will be removed from the event. If not specified, all handlers for the event are removed.
Returns
{Object}
:
this
canEvent.removeEventListener.call(obj, event, handler)
This syntax can be used for objects that don't include the can-event mixin.