Browse Source

Don't do a null check for tags

This closes https://github.com/select2/select2/issues/3155.
Kevin Brown 10 years ago
parent
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);
       }
 

File diff suppressed because it is too large
+ 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 suppressed because it is too large
+ 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);
       }
 

Some files were not shown because too many files changed in this diff