diff --git a/select2.js b/select2.js index 67d31ed3..3ebd2653 100644 --- a/select2.js +++ b/select2.js @@ -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