DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • can.Control.processor
  • / On this page
    • can.Control.processor

      typedef

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

      • source

      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.

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.