correctly handle undefined placeholders. tweak to issue #1365
This commit is contained in:
parent
def8adca7c
commit
8904e42ef9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user