montagejs/montage — pull request #1171 by francoisfrisch (2013-03-18 22:54:48+00:00)
Title: classList

Add classList to Component base type.

This adds a classList property to all components.
It can be used as if it was the classList of the component's element with the advantage that it respects the draw cycle automatically.

It can also be controlled via bindings.
This is an example of binding the existence of a class to a boolean property:
```javascript
Bindings.defineBinding(aComponent, "classList.has('red')", {
source: dataObject,
"<-": "isRed"
});
```