special
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.
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: