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