| OLD | NEW |
| 1 | 1 Polymer({ |
| 2 Polymer({ | |
| 3 is: 'paper-input-error', | 2 is: 'paper-input-error', |
| 4 | 3 |
| 5 behaviors: [ | 4 behaviors: [ |
| 6 Polymer.PaperInputAddonBehavior | 5 Polymer.PaperInputAddonBehavior |
| 7 ], | 6 ], |
| 8 | 7 |
| 9 properties: { | 8 properties: { |
| 10 /** | 9 /** |
| 11 * True if the error is showing. | 10 * True if the error is showing. |
| 12 */ | 11 */ |
| 13 invalid: { | 12 invalid: { |
| 14 readOnly: true, | 13 readOnly: true, |
| 15 reflectToAttribute: true, | 14 reflectToAttribute: true, |
| 16 type: Boolean | 15 type: Boolean |
| 17 } | 16 } |
| 18 }, | 17 }, |
| 19 | 18 |
| 20 update: function(state) { | 19 update: function(state) { |
| 21 this._setInvalid(state.invalid); | 20 this._setInvalid(state.invalid); |
| 22 } | 21 } |
| 23 }); | 22 }); |
| OLD | NEW |