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

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

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 years, 3 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 /**
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698