can.Control.processor

  • typedef

{function(element, eventName, selector, handler, control)}

 

A function that handles the binding and unbinding of a can.Control's declarative event method.

function(element, eventName, selector, handler, control)

Parameters

  1. element {HTMLElement}

    the control's element or the object specified by the templated event handler ("{object}").

  2. eventName {String}

    The event type.

  3. selector {CSSSelectorString}

    The selector preceding the event in the binding used on the Control.

  4. handler {function(element, event)}

    The callback function being bound.

  5. control {can.Control}

    The Control the event is bound on.

Returns

{function()}

A callback function that unbinds any event handlers bound within this processor.