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

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

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 29 matching lines...) Expand all
40 * Name of the validator to use. 40 * Name of the validator to use.
41 */ 41 */
42 validator: { 42 validator: {
43 type: String 43 type: String
44 }, 44 },
45 45
46 /** 46 /**
47 * True if the last call to `validate` is invalid. 47 * True if the last call to `validate` is invalid.
48 */ 48 */
49 invalid: { 49 invalid: {
50 notify: true,
50 reflectToAttribute: true, 51 reflectToAttribute: true,
51 type: Boolean, 52 type: Boolean,
52 value: false 53 value: false
53 }, 54 },
54 55
55 _validatorMeta: { 56 _validatorMeta: {
56 type: Object 57 type: Object
57 } 58 }
58 59
59 }, 60 },
(...skipping 12 matching lines...) Expand all
72 73
73 _invalidChanged: function() { 74 _invalidChanged: function() {
74 if (this.invalid) { 75 if (this.invalid) {
75 this.setAttribute('aria-invalid', 'true'); 76 this.setAttribute('aria-invalid', 'true');
76 } else { 77 } else {
77 this.removeAttribute('aria-invalid'); 78 this.removeAttribute('aria-invalid');
78 } 79 }
79 }, 80 },
80 81
81 /** 82 /**
82 * @return {Boolean} True if the validator `validator` exists. 83 * @return {boolean} True if the validator `validator` exists.
83 */ 84 */
84 hasValidator: function() { 85 hasValidator: function() {
85 return this._validator != null; 86 return this._validator != null;
86 }, 87 },
87 88
88 /** 89 /**
89 * @param {Object} values Passed to the validator's `validate()` function. 90 * @param {Object} values Passed to the validator's `validate()` function.
90 * @return {Boolean} True if `values` is valid. 91 * @return {boolean} True if `values` is valid.
91 */ 92 */
92 validate: function(values) { 93 validate: function(values) {
93 var valid = this._validator && this._validator.validate(values); 94 var valid = this._validator && this._validator.validate(values);
94 this.invalid = !valid; 95 this.invalid = !valid;
95 return valid; 96 return valid;
96 } 97 }
97 98
98 }; 99 };
99 100
100 </script> 101 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698