1
0
mirror of synced 2024-11-28 23:56:03 +03:00

Merge pull request #56 from ProLoser/master

Added support for [placeholder] attribute
This commit is contained in:
Igor Vaynberg 2012-05-02 22:50:40 -07:00
commit a1457fa491

View File

@ -758,9 +758,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;
}, },
/** /**