undelegate

  • function
 

obj.undelegate( selector, event, handler )

Provides a compatibility layer for removing delegate event listeners. This doesn't actually implement delegates, but rather allows logic that assumes a delegate to still function.

Therefore, this is essentially an alias of removeEvent with the selector ignored.

Parameters

  1. selector {String}

    The ignored selector to use for the delegate.

  2. event {String}

    The name of the event to listen for.

  3. handler {function()}

    The handler that will be executed to handle the event.

Returns

{Object}

this

can.event.undelegate.call( obj, selector, event, handler )

This syntax can be used for objects that don't include the can.event mixin.