emberjs/ember.js — pull request #593 by dgeb (2012-03-14 19:51:23+00:00)
Title: Evaluate class bindings for the view helper within the appropriate context

Different rules are currently applied to bindings for regular attributes vs. classes within the view helper. Regular attribute bindings are evaluated in the binding context, while class bindings are evaluated in the view context.

I've illustrated this in [this fiddle](http://jsfiddle.net/dgeb/DD7hG/) - see the TextField examples. The first works but is inconsistent, and the second doesn't work even though it's consistent. I included an example using `bindAttr` for the sake of comparison.

This PR ensures that class bindings will be evaluated using the same rules as other bindings. I've also added tests for various types of bindings in view helpers (view helper tests didn't exist before).