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

Side by Side Diff: third_party/polymer/v1_0/components/iron-validatable-behavior/iron-validatable-behavior.html

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 */ 84 */
85 hasValidator: function() { 85 hasValidator: function() {
86 return this._validator != null; 86 return this._validator != null;
87 }, 87 },
88 88
89 /** 89 /**
90 * @param {Object} values Passed to the validator's `validate()` function. 90 * @param {Object} values Passed to the validator's `validate()` function.
91 * @return {boolean} True if `values` is valid. 91 * @return {boolean} True if `values` is valid.
92 */ 92 */
93 validate: function(values) { 93 validate: function(values) {
94 var valid = this._validator && this._validator.validate(values); 94 var valid = true;
95 if (this.hasValidator()) {
96 valid = this._validator.validate(values);
97 }
98
95 this.invalid = !valid; 99 this.invalid = !valid;
96 return valid; 100 return valid;
97 } 101 }
98 102
99 }; 103 };
100 104
101 </script> 105 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698