can.Control.processor
typedef
A function that handles the binding and unbinding of a can.Control's declarative event method.
function(element, eventName, selector, handler, control)
Parameters
- element
{HTMLElement}:the control's element or the object specified by the templated event handler (
"{object}"). - eventName
{String}:The event type.
- selector
{CSSSelectorString}:The selector preceding the event in the binding used on the Control.
- handler
{function(element, event)}:The callback function being bound.
- control
{can.Control}:The Control the event is bound on.
Returns
{function}:
A callback function that unbinds any event handlers bound within this processor.