Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-validatable-behavior/iron-validatable-behavior-extracted.js

Issue 1401633002: Update Polymer from 1.1.4 -> 1.1.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dzhioev@ review Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698