1
0
mirror of synced 2025-02-09 16:49:24 +03:00

correctly handle undefined placeholders. tweak to issue #1365

This commit is contained in:
Igor Vaynberg 2013-06-03 12:12:46 -07:00
parent def8adca7c
commit 8904e42ef9

View File

@ -1662,7 +1662,7 @@ the specific language governing permissions and limitations under the Apache Lic
this.opts.element.attr("data-placeholder") || // jquery 1.4 compat
this.opts.element.data("placeholder") ||
this.opts.placeholder ||
((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.text());
((placeholderOption = this.getPlaceholderOption()) !== undefined ? placeholderOption.text() : undefined);
},
// abstract