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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components/iron-validatable-behavior/iron-validatable-behavior.html
diff --git a/third_party/polymer/v1_0/components/iron-validatable-behavior/iron-validatable-behavior.html b/third_party/polymer/v1_0/components/iron-validatable-behavior/iron-validatable-behavior.html
index c59c47e27d1131ed637aa3fa1607f5ff924ccd75..a264668ec9e908689ab0bd7377e313db081483ac 100644
--- a/third_party/polymer/v1_0/components/iron-validatable-behavior/iron-validatable-behavior.html
+++ b/third_party/polymer/v1_0/components/iron-validatable-behavior/iron-validatable-behavior.html
@@ -91,7 +91,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
* @return {boolean} True if `values` is valid.
*/
validate: function(values) {
- var valid = this._validator && this._validator.validate(values);
+ var valid = true;
+ if (this.hasValidator()) {
+ valid = this._validator.validate(values);
+ }
+
this.invalid = !valid;
return valid;
}

Powered by Google App Engine
This is Rietveld 408576698