OLD | NEW |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 * Namespace for this validator. This property is deprecated and should | 74 * Namespace for this validator. This property is deprecated and should |
75 * not be used. For all intents and purposes, please consider it a | 75 * not be used. For all intents and purposes, please consider it a |
76 * read-only, config-time property. | 76 * read-only, config-time property. |
77 */ | 77 */ |
78 validatorType: { | 78 validatorType: { |
79 type: String, | 79 type: String, |
80 value: 'validator' | 80 value: 'validator' |
81 }, | 81 }, |
82 | 82 |
83 _validator: { | 83 _validator: { |
| 84 type: Object, |
84 computed: '__computeValidator(validator)' | 85 computed: '__computeValidator(validator)' |
85 } | 86 } |
86 }, | 87 }, |
87 | 88 |
88 observers: [ | 89 observers: [ |
89 '_invalidChanged(invalid)' | 90 '_invalidChanged(invalid)' |
90 ], | 91 ], |
91 | 92 |
92 registered: function() { | 93 registered: function() { |
93 Polymer.IronValidatableBehaviorMeta = new Polymer.IronMeta({type: 'validat
or'}); | 94 Polymer.IronValidatableBehaviorMeta = new Polymer.IronMeta({type: 'validat
or'}); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 return true; | 140 return true; |
140 }, | 141 }, |
141 | 142 |
142 __computeValidator: function() { | 143 __computeValidator: function() { |
143 return Polymer.IronValidatableBehaviorMeta && | 144 return Polymer.IronValidatableBehaviorMeta && |
144 Polymer.IronValidatableBehaviorMeta.byKey(this.validator); | 145 Polymer.IronValidatableBehaviorMeta.byKey(this.validator); |
145 } | 146 } |
146 }; | 147 }; |
147 | 148 |
148 </script> | 149 </script> |
OLD | NEW |