| OLD | NEW |
| 1 | 1 /** |
| 2 | |
| 3 /** | |
| 4 * Use `Polymer.IronValidatableBehavior` to implement an element that validate
s user input. | 2 * Use `Polymer.IronValidatableBehavior` to implement an element that validate
s user input. |
| 5 * | 3 * |
| 6 * ### Accessibility | 4 * ### Accessibility |
| 7 * | 5 * |
| 8 * Changing the `invalid` property, either manually or by calling `validate()`
will update the | 6 * Changing the `invalid` property, either manually or by calling `validate()`
will update the |
| 9 * `aria-invalid` attribute. | 7 * `aria-invalid` attribute. |
| 10 * | 8 * |
| 11 * @demo demo/index.html | 9 * @demo demo/index.html |
| 12 * @polymerBehavior | 10 * @polymerBehavior |
| 13 */ | 11 */ |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 * @param {Object} value The value to be validated. | 94 * @param {Object} value The value to be validated. |
| 97 * @return {boolean} True if `value` is valid. | 95 * @return {boolean} True if `value` is valid. |
| 98 */ | 96 */ |
| 99 | 97 |
| 100 _getValidity: function(value) { | 98 _getValidity: function(value) { |
| 101 if (this.hasValidator()) { | 99 if (this.hasValidator()) { |
| 102 return this._validator.validate(value); | 100 return this._validator.validate(value); |
| 103 } | 101 } |
| 104 return true; | 102 return true; |
| 105 } | 103 } |
| 106 }; | 104 }; |
| 107 | |
| OLD | NEW |