DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
    • can-construct
    • can-control
    • can-event
    • can-event/async/async
    • can-event/batch/batch
    • can-observation
    • can-simple-map
    • can-util
      • can-util/dom
        • ./ajax/
        • ./attr/
          • special
            • focused
            • values
        • ./child-nodes/
        • ./class-name/
        • ./data/
        • ./dispatch/
        • ./document/
        • ./events/
        • ./frag/
        • ./mutate/
      • can-util/js
    • can-view-callbacks
    • can-view-live
    • can-view-model
    • can-view-nodelist
    • can-view-parser
    • can-view-scope
    • can-view-target
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Infrastructure
  • /
  • can-util
  • /
  • can-util/dom
  • /
  • ./attr/
  • /
  • special
  • / On this page
    • special

      property

      An object used to set up special properties. Each key on attr.special is a name of a property/attribute that has special behaviors when being get, set, or bound to.

      • source

      Object

      attr.special.foo = {
          get: function(){
              return this.foo;
          },
          set: function(val){
              this.foo = val;
          },
          addEventListener: function(){
              // Listen to this property changing some how
          }
      };
      

      CanJS comes with a couple of special properties that can be used in bindings:

      • values
      • focused

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