emberjs/ember.js — Issue #474: Decorating Ember.TextField
Author: kdasummer
Created: 2012-02-06 22:19:42+00:00
State: open

I can't decorate Ember.TextField because of this code in Ember.TextSupport:
```_elementValueDidChange: function() {
set(this, 'value', this.$().val());
}```
If I had a way of setting the jQuery selector, like:
```inputField: function() {
return this.$();
}```
I could easily override this in my sub class with something like return this.$(":input") and create a template which decorates the ``-field with a label. Currently I have to override _elementValueDidChange, but it doesn't feel right.....