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