can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
20 lines (11 loc) • 862 B
Markdown
HTMLElement,String,CSSSelectorString,Function,can.Control)} can.Control.processor(element,eventName,selector,handler,control)
A function that handles the binding and unbinding of a [can.Control]'s declarative event method.
{HTMLElement} element the control's element or the object
specified by the templated event handler (`"{object}"`).
{String} eventName The event type.
{CSSSelectorString} selector The selector preceding the event in the binding used on the Control.
{function(this:can.Control,Object,Event)} handler(element, event) The callback function being bound.
{Object} element foo
{Event} event bar
{can.Control} control The Control the event is bound on.
{function()} A callback function that unbinds any event handlers bound within this processor.
{function(