Skip to content

Commit 5a25c33

Browse files
committed
Don't do a null check for tags
This closes select2#3155.
1 parent e5d97e0 commit 5a25c33

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

dist/js/select2.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4287,7 +4287,7 @@ S2.define('select2/defaults',[
42874287
);
42884288
}
42894289

4290-
if (options.tags != null) {
4290+
if (options.tags) {
42914291
options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
42924292
}
42934293

dist/js/select2.full.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4287,7 +4287,7 @@ S2.define('select2/defaults',[
42874287
);
42884288
}
42894289

4290-
if (options.tags != null) {
4290+
if (options.tags) {
42914291
options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
42924292
}
42934293

dist/js/select2.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/select2/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ define([
8787
);
8888
}
8989

90-
if (options.tags != null) {
90+
if (options.tags) {
9191
options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
9292
}
9393

0 commit comments

Comments
 (0)