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:
parent
001c9abb34
commit
2d58f5b084
@ -2293,8 +2293,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
if (data == undefined) data = null;
|
if (data == undefined) data = null;
|
||||||
return data;
|
return data;
|
||||||
} else {
|
} else {
|
||||||
if (!value || value === "") {
|
if (!value) {
|
||||||
this.clear(triggerChange);
|
this.clear(!!triggerChange);
|
||||||
} else {
|
} else {
|
||||||
data = this.data();
|
data = this.data();
|
||||||
this.opts.element.val(!value ? "" : this.id(value));
|
this.opts.element.val(!value ? "" : this.id(value));
|
||||||
|
Loading…
Reference in New Issue
Block a user