1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Added support for placeholder attribute in addition to data-placeholder

This commit is contained in:
Dean Sofer 2012-05-02 20:19:00 -07:00
parent 5f00dd1cfd
commit 945249f46a

View File

@ -756,9 +756,7 @@
}, },
getPlaceholder: function () { getPlaceholder: function () {
var placeholder = this.opts.element.data("placeholder"); return this.opts.element.attr("placeholder") || this.opts.element.data("placeholder") || this.opts.placeholder;
if (placeholder !== undefined) return placeholder;
return this.opts.placeholder;
}, },
/** /**