1
0
mirror of synced 2025-03-10 22:56:12 +03:00

make getPlaceholder() compatible with jquery 1.4

(doesn't check data- attrs when using .data())
This commit is contained in:
Andy Fowler 2012-06-13 18:06:41 -04:00
parent 94ffecb824
commit 38b9d060b1

View File

@ -809,7 +809,10 @@
},
getPlaceholder: function () {
return this.opts.element.attr("placeholder") || this.opts.element.data("placeholder") || this.opts.placeholder;
return this.opts.element.attr("placeholder") ||
this.opts.element.attr("data-placeholder") || // jquery 1.4 compat
this.opts.element.data("placeholder") ||
this.opts.placeholder;
},
/**