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