| OLD | NEW |
| 1 | 1 |
| 2 | 2 |
| 3 Polymer({ | 3 Polymer({ |
| 4 | 4 |
| 5 is: 'iron-autogrow-textarea', | 5 is: 'iron-autogrow-textarea', |
| 6 | 6 |
| 7 behaviors: [ | 7 behaviors: [ |
| 8 Polymer.IronValidatableBehavior | 8 Polymer.IronValidatableBehavior, |
| 9 Polymer.IronControlState |
| 9 ], | 10 ], |
| 10 | 11 |
| 11 properties: { | 12 properties: { |
| 12 | 13 |
| 13 /** | 14 /** |
| 14 * Use this property instead of `value` for two-way data binding. | 15 * Use this property instead of `value` for two-way data binding. |
| 15 */ | 16 */ |
| 16 bindValue: { | 17 bindValue: { |
| 17 observer: '_bindValueChanged', | 18 observer: '_bindValueChanged', |
| 18 type: String | 19 type: String |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 return; | 166 return; |
| 166 } | 167 } |
| 167 this.tokens = (input && input.value) ? input.value.replace(/&/gm, '&')
.replace(/"/gm, '"').replace(/'/gm, ''').replace(/</gm, '<').replace
(/>/gm, '>').split('\n') : ['']; | 168 this.tokens = (input && input.value) ? input.value.replace(/&/gm, '&')
.replace(/"/gm, '"').replace(/'/gm, ''').replace(/</gm, '<').replace
(/>/gm, '>').split('\n') : ['']; |
| 168 return this._constrain(this.tokens); | 169 return this._constrain(this.tokens); |
| 169 }, | 170 }, |
| 170 | 171 |
| 171 _updateCached: function() { | 172 _updateCached: function() { |
| 172 this.$.mirror.innerHTML = this._constrain(this.tokens); | 173 this.$.mirror.innerHTML = this._constrain(this.tokens); |
| 173 } | 174 } |
| 174 }) | 175 }) |
| OLD | NEW |