rniemeyer/knockout-classBindingProvider — pull request #4 by drosen0 (2012-09-06 20:11:48+00:00)
Title: Provide access to attributes in binding functions

As discussed in #1, this gives access to the node in the second parameter of the binding function. For virtual nodes, the node is an object with a getAttribute function. This provides a consistent interface to data-attributes. For example:
```html

...

```
```html
...
```
Both of these can be read the same way:
```js
renderSection: function(context, node) {
return {
"if": this.selectedSection() === node.getAttribute('data-section')
};
}
```