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;
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user