Kaynağa Gözat

Don't do a null check for tags

This closes https://github.com/select2/select2/issues/3155.
Kevin Brown 10 yıl önce
ebeveyn
işleme
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);
       }
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 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);
       }
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 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);
       }
 

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor