Ver código fonte

Don't do a null check for tags

This closes https://github.com/select2/select2/issues/3155.
Kevin Brown 10 anos atrás
pai
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);
       }
 

Diferenças do arquivo suprimidas por serem muito extensas
+ 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);
       }
 

Diferenças do arquivo suprimidas por serem muito extensas
+ 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);
       }
 

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff