Jelajahi Sumber

Don't do a null check for tags

This closes https://github.com/select2/select2/issues/3155.
Kevin Brown 10 tahun lalu
induk
melakukan
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);
       }
 

File diff ditekan karena terlalu besar
+ 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);
       }
 

File diff ditekan karena terlalu besar
+ 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);
       }
 

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini