OLD | NEW |
1 | 1 |
2 | 2 |
3 /** | 3 /** |
4 * Use `Polymer.IronValidatableBehavior` to implement an element that validate
s user input. | 4 * Use `Polymer.IronValidatableBehavior` to implement an element that validate
s user input. |
5 * | 5 * |
6 * ### Accessiblity | 6 * ### Accessiblity |
7 * | 7 * |
8 * Changing the `invalid` property, either manually or by calling `validate()`
will update the | 8 * Changing the `invalid` property, either manually or by calling `validate()`
will update the |
9 * `aria-invalid` attribute. | 9 * `aria-invalid` attribute. |
10 * | 10 * |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 * @return {Boolean} True if `values` is valid. | 77 * @return {Boolean} True if `values` is valid. |
78 */ | 78 */ |
79 validate: function(values) { | 79 validate: function(values) { |
80 var valid = this._validator && this._validator.validate(values); | 80 var valid = this._validator && this._validator.validate(values); |
81 this.invalid = !valid; | 81 this.invalid = !valid; |
82 return valid; | 82 return valid; |
83 } | 83 } |
84 | 84 |
85 }; | 85 }; |
86 | 86 |
OLD | NEW |