diff --git a/iron-validator-behavior.html b/iron-validator-behavior.html index 6dfc604..d246f1f 100644 --- a/iron-validator-behavior.html +++ b/iron-validator-behavior.html @@ -22,8 +22,21 @@ * @polymerBehavior */ Polymer.IronValidatorBehavior = { + + properties: { + /** + * Name for this validator, used by `Polymer.IronValidatableBehavior` to lookup this element. + */ + validatorName: { + type: String, + value: function() { + return this.is; + } + } + }, + ready: function() { - new Polymer.IronMeta({type: 'validator', key: this.is, value: this}); + new Polymer.IronMeta({type: 'validator', key: this.validatorName, value: this}); }, /**