1
0
mirror of synced 2024-11-26 06:46:04 +03:00

Fixes #1562; remove some dead code

No longer fire change event when .select2('data', falsyValue) is called without the 3rd param;
Dead code removed: !"" is true.
This commit is contained in:
UltCombo 2013-07-23 18:55:09 -03:00
parent 001c9abb34
commit 2d58f5b084

View File

@ -2293,8 +2293,8 @@ the specific language governing permissions and limitations under the Apache Lic
if (data == undefined) data = null;
return data;
} else {
if (!value || value === "") {
this.clear(triggerChange);
if (!value) {
this.clear(!!triggerChange);
} else {
data = this.data();
this.opts.element.val(!value ? "" : this.id(value));