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 selector preceding the event in the binding used on the Control.
-
handler
{function(element, event)}
The callback function being bound.
-
The Control the event is bound on.
Returns
{function()}
A callback function that unbinds any event handlers bound within this processor.