| OLD | NEW |
| 1 /** | 1 |
| 2 |
| 3 /** |
| 2 * 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. |
| 3 * | 5 * |
| 4 * ### Accessibility | 6 * ### Accessibility |
| 5 * | 7 * |
| 6 * 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 |
| 7 * `aria-invalid` attribute. | 9 * `aria-invalid` attribute. |
| 8 * | 10 * |
| 9 * @demo demo/index.html | 11 * @demo demo/index.html |
| 10 * @polymerBehavior | 12 * @polymerBehavior |
| 11 */ | 13 */ |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 * @param {Object} value The value to be validated. | 96 * @param {Object} value The value to be validated. |
| 95 * @return {boolean} True if `value` is valid. | 97 * @return {boolean} True if `value` is valid. |
| 96 */ | 98 */ |
| 97 | 99 |
| 98 _getValidity: function(value) { | 100 _getValidity: function(value) { |
| 99 if (this.hasValidator()) { | 101 if (this.hasValidator()) { |
| 100 return this._validator.validate(value); | 102 return this._validator.validate(value); |
| 101 } | 103 } |
| 102 return true; | 104 return true; |
| 103 } | 105 } |
| 104 }; | 106 }; |
| 107 |
| OLD | NEW |