Skip to content

Commit

Permalink
Recompile dist
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-brown committed Dec 30, 2016
1 parent 45a8773 commit 04d5821
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 26 deletions.
2 changes: 1 addition & 1 deletion dist/js/i18n/ar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/i18n/da.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/i18n/de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/i18n/gl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/i18n/hu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/js/i18n/sl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/i18n/th.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 24 additions & 7 deletions dist/js/select2.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,33 @@
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
factory(require('jquery'));
module.exports = function (root, jQuery) {
if (jQuery === undefined) {
// require('jQuery') returns a factory that requires window to
// build a jQuery instance, we normalize how we use modules
// that require this pattern but the window provided is a noop
// if it's defined (how jquery works)
if (typeof window !== 'undefined') {
jQuery = require('jquery');
}
else {
jQuery = require('jquery')(root);
}
}
factory(jQuery);
return jQuery;
};
} else {
// Browser globals
factory(jQuery);
}
}(function (jQuery) {
} (function (jQuery) {
// This is needed so we can catch the AMD loader configuration and use it
// The inner file should be wrapped (by `banner.start.js`) in a function that
// returns the AMD loader references.
var S2 =
(function () {
var S2 =(function () {
// Restore the Select2 AMD loader so it can be used
// Needed mostly in the language files, where the loader is not inserted
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
Expand Down Expand Up @@ -3191,7 +3205,7 @@ S2.define('select2/data/select',[
}
}

if (data.id) {
if (data.id !== undefined) {
option.value = data.id;
}

Expand Down Expand Up @@ -3550,7 +3564,10 @@ S2.define('select2/data/tags',[
}, true)
);

var checkText = option.text === params.term;
var optionText = (option.text || '').toUpperCase();
var paramsTerm = (params.term || '').toUpperCase();

var checkText = optionText === paramsTerm;

if (checkText || checkChildren) {
if (child) {
Expand Down
6 changes: 3 additions & 3 deletions dist/js/select2.full.min.js

Large diffs are not rendered by default.

31 changes: 24 additions & 7 deletions dist/js/select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,33 @@
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
factory(require('jquery'));
module.exports = function (root, jQuery) {
if (jQuery === undefined) {
// require('jQuery') returns a factory that requires window to
// build a jQuery instance, we normalize how we use modules
// that require this pattern but the window provided is a noop
// if it's defined (how jquery works)
if (typeof window !== 'undefined') {
jQuery = require('jquery');
}
else {
jQuery = require('jquery')(root);
}
}
factory(jQuery);
return jQuery;
};
} else {
// Browser globals
factory(jQuery);
}
}(function (jQuery) {
} (function (jQuery) {
// This is needed so we can catch the AMD loader configuration and use it
// The inner file should be wrapped (by `banner.start.js`) in a function that
// returns the AMD loader references.
var S2 =
(function () {
var S2 =(function () {
// Restore the Select2 AMD loader so it can be used
// Needed mostly in the language files, where the loader is not inserted
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
Expand Down Expand Up @@ -3191,7 +3205,7 @@ S2.define('select2/data/select',[
}
}

if (data.id) {
if (data.id !== undefined) {
option.value = data.id;
}

Expand Down Expand Up @@ -3550,7 +3564,10 @@ S2.define('select2/data/tags',[
}, true)
);

var checkText = option.text === params.term;
var optionText = (option.text || '').toUpperCase();
var paramsTerm = (params.term || '').toUpperCase();

var checkText = optionText === paramsTerm;

if (checkText || checkChildren) {
if (child) {
Expand Down
6 changes: 3 additions & 3 deletions dist/js/select2.min.js

Large diffs are not rendered by default.

0 comments on commit 04d5821

Please sign in to comment.