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