Use === to tell the difference between '' and (int)0 keys

This commit is contained in:
Nathan Gray 2013-11-28 18:12:08 +00:00
parent 1bace180cf
commit f8352386cb

View File

@ -299,7 +299,7 @@ var et2_selectbox = et2_inputWidget.extend(
{
option.attr("title", _title);
}
if(_label == this.options.empty_label || this.options.empty_label == "" && _value == "")
if(_label == this.options.empty_label || this.options.empty_label == "" && _value === "")
{
// Make sure empty / all option is first
option.prependTo(this.input);