Browse Source

Don't do a null check for tags

This closes https://github.com/select2/select2/issues/3155.
Kevin Brown 10 năm trước cách đây
mục cha
commit
5a25c33fc5

+ 1 - 1
dist/js/select2.full.js

@@ -4287,7 +4287,7 @@ S2.define('select2/defaults',[
         );
       }
 
-      if (options.tags != null) {
+      if (options.tags) {
         options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
       }
 

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/js/select2.full.min.js


+ 1 - 1
dist/js/select2.js

@@ -4287,7 +4287,7 @@ S2.define('select2/defaults',[
         );
       }
 
-      if (options.tags != null) {
+      if (options.tags) {
         options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
       }
 

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/js/select2.min.js


+ 1 - 1
src/js/select2/defaults.js

@@ -87,7 +87,7 @@ define([
         );
       }
 
-      if (options.tags != null) {
+      if (options.tags) {
         options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
       }
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác