fix check for null in setting attr, fix

This commit is contained in:
vitalets 2013-02-13 20:30:51 +04:00
parent bdf036c2ef
commit 299bc6d522

@ -159,7 +159,7 @@ To create your own input you can inherit from this class.
},
setAttr: function(attr) {
if (this.options[attr]) {
if (this.options[attr] !== undefined && this.options[attr] !== null) {
this.$input.attr(attr, this.options[attr]);
}
},