Recompile dist with newer dependencies
This commit is contained in:
parent
af97cc9996
commit
d504700c53
156
dist/js/select2.full.js
vendored
156
dist/js/select2.full.js
vendored
@ -30,7 +30,7 @@
|
|||||||
var S2;(function () { if (!S2 || !S2.requirejs) {
|
var S2;(function () { if (!S2 || !S2.requirejs) {
|
||||||
if (!S2) { S2 = {}; } else { require = S2; }
|
if (!S2) { S2 = {}; } else { require = S2; }
|
||||||
/**
|
/**
|
||||||
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
* @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
||||||
* Available via the MIT or new BSD license.
|
* Available via the MIT or new BSD license.
|
||||||
* see: http://github.com/jrburke/almond for details
|
* see: http://github.com/jrburke/almond for details
|
||||||
*/
|
*/
|
||||||
@ -75,12 +75,6 @@ var requirejs, require, define;
|
|||||||
//otherwise, assume it is a top-level require that will
|
//otherwise, assume it is a top-level require that will
|
||||||
//be relative to baseUrl in the end.
|
//be relative to baseUrl in the end.
|
||||||
if (baseName) {
|
if (baseName) {
|
||||||
//Convert baseName to array, and lop off the last part,
|
|
||||||
//so that . matches that "directory" and not name of the baseName's
|
|
||||||
//module. For instance, baseName of "one/two/three", maps to
|
|
||||||
//"one/two/three.js", but we want the directory, "one/two" for
|
|
||||||
//this normalization.
|
|
||||||
baseParts = baseParts.slice(0, baseParts.length - 1);
|
|
||||||
name = name.split('/');
|
name = name.split('/');
|
||||||
lastIndex = name.length - 1;
|
lastIndex = name.length - 1;
|
||||||
|
|
||||||
@ -89,7 +83,11 @@ var requirejs, require, define;
|
|||||||
name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
|
name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
name = baseParts.concat(name);
|
//Lop off the last part of baseParts, so that . matches the
|
||||||
|
//"directory" and not name of the baseName's module. For instance,
|
||||||
|
//baseName of "one/two/three", maps to "one/two/three.js", but we
|
||||||
|
//want the directory, "one/two" for this normalization.
|
||||||
|
name = baseParts.slice(0, baseParts.length - 1).concat(name);
|
||||||
|
|
||||||
//start trimDots
|
//start trimDots
|
||||||
for (i = 0; i < name.length; i += 1) {
|
for (i = 0; i < name.length; i += 1) {
|
||||||
@ -181,7 +179,15 @@ var requirejs, require, define;
|
|||||||
//A version of a require function that passes a moduleName
|
//A version of a require function that passes a moduleName
|
||||||
//value for items that may need to
|
//value for items that may need to
|
||||||
//look up paths relative to the moduleName
|
//look up paths relative to the moduleName
|
||||||
return req.apply(undef, aps.call(arguments, 0).concat([relName, forceSync]));
|
var args = aps.call(arguments, 0);
|
||||||
|
|
||||||
|
//If first arg is not require('string'), and there is only
|
||||||
|
//one arg, it is the array form without a callback. Insert
|
||||||
|
//a null so that the following concat is correct.
|
||||||
|
if (typeof args[0] !== 'string' && args.length === 1) {
|
||||||
|
args.push(null);
|
||||||
|
}
|
||||||
|
return req.apply(undef, args.concat([relName, forceSync]));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -431,6 +437,9 @@ var requirejs, require, define;
|
|||||||
requirejs._defined = defined;
|
requirejs._defined = defined;
|
||||||
|
|
||||||
define = function (name, deps, callback) {
|
define = function (name, deps, callback) {
|
||||||
|
if (typeof name !== 'string') {
|
||||||
|
throw new Error('See almond README: incorrect module build, no module name');
|
||||||
|
}
|
||||||
|
|
||||||
//This module may not have dependencies
|
//This module may not have dependencies
|
||||||
if (!deps.splice) {
|
if (!deps.splice) {
|
||||||
@ -5951,80 +5960,18 @@ S2.define('select2/selection/stopPropagation',[
|
|||||||
return StopPropagation;
|
return StopPropagation;
|
||||||
});
|
});
|
||||||
|
|
||||||
S2.define('jquery.select2',[
|
|
||||||
'jquery',
|
|
||||||
'require',
|
|
||||||
|
|
||||||
'./select2/core',
|
|
||||||
'./select2/defaults'
|
|
||||||
], function ($, require, Select2, Defaults) {
|
|
||||||
// Force jQuery.mousewheel to be loaded if it hasn't already
|
|
||||||
require('jquery.mousewheel');
|
|
||||||
|
|
||||||
if ($.fn.select2 == null) {
|
|
||||||
// All methods that should return the element
|
|
||||||
var thisMethods = ['open', 'close', 'destroy'];
|
|
||||||
|
|
||||||
$.fn.select2 = function (options) {
|
|
||||||
options = options || {};
|
|
||||||
|
|
||||||
if (typeof options === 'object') {
|
|
||||||
this.each(function () {
|
|
||||||
var instanceOptions = $.extend({}, options, true);
|
|
||||||
|
|
||||||
var instance = new Select2($(this), instanceOptions);
|
|
||||||
});
|
|
||||||
|
|
||||||
return this;
|
|
||||||
} else if (typeof options === 'string') {
|
|
||||||
var ret;
|
|
||||||
|
|
||||||
this.each(function () {
|
|
||||||
var instance = $(this).data('select2');
|
|
||||||
|
|
||||||
if (instance == null && window.console && console.error) {
|
|
||||||
console.error(
|
|
||||||
'The select2(\'' + options + '\') method was called on an ' +
|
|
||||||
'element that is not using Select2.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
var args = Array.prototype.slice.call(arguments, 1);
|
|
||||||
|
|
||||||
ret = instance[options].apply(instance, args);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Check if we should be returning `this`
|
|
||||||
if ($.inArray(options, thisMethods) > -1) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
} else {
|
|
||||||
throw new Error('Invalid arguments for Select2: ' + options);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($.fn.select2.defaults == null) {
|
|
||||||
$.fn.select2.defaults = Defaults;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Select2;
|
|
||||||
});
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery Mousewheel 3.1.12
|
* jQuery Mousewheel 3.1.13
|
||||||
*
|
*
|
||||||
* Copyright 2014 jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
* Released under the MIT license.
|
* Released under the MIT license
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (factory) {
|
(function (factory) {
|
||||||
if ( typeof S2.define === 'function' && S2.define.amd ) {
|
if ( typeof S2.define === 'function' && S2.define.amd ) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
S2.define('jquery.mousewheel',['jquery'], factory);
|
S2.define('jquery-mousewheel',['jquery'], factory);
|
||||||
} else if (typeof exports === 'object') {
|
} else if (typeof exports === 'object') {
|
||||||
// Node/CommonJS style for Browserify
|
// Node/CommonJS style for Browserify
|
||||||
module.exports = factory;
|
module.exports = factory;
|
||||||
@ -6235,6 +6182,65 @@ S2.define('jquery.select2',[
|
|||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
S2.define('jquery.select2',[
|
||||||
|
'jquery',
|
||||||
|
'jquery-mousewheel',
|
||||||
|
|
||||||
|
'./select2/core',
|
||||||
|
'./select2/defaults'
|
||||||
|
], function ($, _, Select2, Defaults) {
|
||||||
|
if ($.fn.select2 == null) {
|
||||||
|
// All methods that should return the element
|
||||||
|
var thisMethods = ['open', 'close', 'destroy'];
|
||||||
|
|
||||||
|
$.fn.select2 = function (options) {
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
|
if (typeof options === 'object') {
|
||||||
|
this.each(function () {
|
||||||
|
var instanceOptions = $.extend(true, {}, options);
|
||||||
|
|
||||||
|
var instance = new Select2($(this), instanceOptions);
|
||||||
|
});
|
||||||
|
|
||||||
|
return this;
|
||||||
|
} else if (typeof options === 'string') {
|
||||||
|
var ret;
|
||||||
|
|
||||||
|
this.each(function () {
|
||||||
|
var instance = $(this).data('select2');
|
||||||
|
|
||||||
|
if (instance == null && window.console && console.error) {
|
||||||
|
console.error(
|
||||||
|
'The select2(\'' + options + '\') method was called on an ' +
|
||||||
|
'element that is not using Select2.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
var args = Array.prototype.slice.call(arguments, 1);
|
||||||
|
|
||||||
|
ret = instance[options].apply(instance, args);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Check if we should be returning `this`
|
||||||
|
if ($.inArray(options, thisMethods) > -1) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
} else {
|
||||||
|
throw new Error('Invalid arguments for Select2: ' + options);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($.fn.select2.defaults == null) {
|
||||||
|
$.fn.select2.defaults = Defaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Select2;
|
||||||
|
});
|
||||||
|
|
||||||
// Return the AMD loader configuration so it can be used outside of this file
|
// Return the AMD loader configuration so it can be used outside of this file
|
||||||
return {
|
return {
|
||||||
define: S2.define,
|
define: S2.define,
|
||||||
|
6
dist/js/select2.full.min.js
vendored
6
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
50
dist/js/select2.js
vendored
50
dist/js/select2.js
vendored
@ -30,7 +30,7 @@
|
|||||||
var S2;(function () { if (!S2 || !S2.requirejs) {
|
var S2;(function () { if (!S2 || !S2.requirejs) {
|
||||||
if (!S2) { S2 = {}; } else { require = S2; }
|
if (!S2) { S2 = {}; } else { require = S2; }
|
||||||
/**
|
/**
|
||||||
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
* @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
||||||
* Available via the MIT or new BSD license.
|
* Available via the MIT or new BSD license.
|
||||||
* see: http://github.com/jrburke/almond for details
|
* see: http://github.com/jrburke/almond for details
|
||||||
*/
|
*/
|
||||||
@ -75,12 +75,6 @@ var requirejs, require, define;
|
|||||||
//otherwise, assume it is a top-level require that will
|
//otherwise, assume it is a top-level require that will
|
||||||
//be relative to baseUrl in the end.
|
//be relative to baseUrl in the end.
|
||||||
if (baseName) {
|
if (baseName) {
|
||||||
//Convert baseName to array, and lop off the last part,
|
|
||||||
//so that . matches that "directory" and not name of the baseName's
|
|
||||||
//module. For instance, baseName of "one/two/three", maps to
|
|
||||||
//"one/two/three.js", but we want the directory, "one/two" for
|
|
||||||
//this normalization.
|
|
||||||
baseParts = baseParts.slice(0, baseParts.length - 1);
|
|
||||||
name = name.split('/');
|
name = name.split('/');
|
||||||
lastIndex = name.length - 1;
|
lastIndex = name.length - 1;
|
||||||
|
|
||||||
@ -89,7 +83,11 @@ var requirejs, require, define;
|
|||||||
name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
|
name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
name = baseParts.concat(name);
|
//Lop off the last part of baseParts, so that . matches the
|
||||||
|
//"directory" and not name of the baseName's module. For instance,
|
||||||
|
//baseName of "one/two/three", maps to "one/two/three.js", but we
|
||||||
|
//want the directory, "one/two" for this normalization.
|
||||||
|
name = baseParts.slice(0, baseParts.length - 1).concat(name);
|
||||||
|
|
||||||
//start trimDots
|
//start trimDots
|
||||||
for (i = 0; i < name.length; i += 1) {
|
for (i = 0; i < name.length; i += 1) {
|
||||||
@ -181,7 +179,15 @@ var requirejs, require, define;
|
|||||||
//A version of a require function that passes a moduleName
|
//A version of a require function that passes a moduleName
|
||||||
//value for items that may need to
|
//value for items that may need to
|
||||||
//look up paths relative to the moduleName
|
//look up paths relative to the moduleName
|
||||||
return req.apply(undef, aps.call(arguments, 0).concat([relName, forceSync]));
|
var args = aps.call(arguments, 0);
|
||||||
|
|
||||||
|
//If first arg is not require('string'), and there is only
|
||||||
|
//one arg, it is the array form without a callback. Insert
|
||||||
|
//a null so that the following concat is correct.
|
||||||
|
if (typeof args[0] !== 'string' && args.length === 1) {
|
||||||
|
args.push(null);
|
||||||
|
}
|
||||||
|
return req.apply(undef, args.concat([relName, forceSync]));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -431,6 +437,9 @@ var requirejs, require, define;
|
|||||||
requirejs._defined = defined;
|
requirejs._defined = defined;
|
||||||
|
|
||||||
define = function (name, deps, callback) {
|
define = function (name, deps, callback) {
|
||||||
|
if (typeof name !== 'string') {
|
||||||
|
throw new Error('See almond README: incorrect module build, no module name');
|
||||||
|
}
|
||||||
|
|
||||||
//This module may not have dependencies
|
//This module may not have dependencies
|
||||||
if (!deps.splice) {
|
if (!deps.splice) {
|
||||||
@ -5455,16 +5464,20 @@ S2.define('select2/core',[
|
|||||||
return Select2;
|
return Select2;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
S2.define('jquery-mousewheel',[
|
||||||
|
'jquery'
|
||||||
|
], function ($) {
|
||||||
|
// Used to shim jQuery.mousewheel for non-full builds.
|
||||||
|
return $;
|
||||||
|
});
|
||||||
|
|
||||||
S2.define('jquery.select2',[
|
S2.define('jquery.select2',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'require',
|
'jquery-mousewheel',
|
||||||
|
|
||||||
'./select2/core',
|
'./select2/core',
|
||||||
'./select2/defaults'
|
'./select2/defaults'
|
||||||
], function ($, require, Select2, Defaults) {
|
], function ($, _, Select2, Defaults) {
|
||||||
// Force jQuery.mousewheel to be loaded if it hasn't already
|
|
||||||
require('jquery.mousewheel');
|
|
||||||
|
|
||||||
if ($.fn.select2 == null) {
|
if ($.fn.select2 == null) {
|
||||||
// All methods that should return the element
|
// All methods that should return the element
|
||||||
var thisMethods = ['open', 'close', 'destroy'];
|
var thisMethods = ['open', 'close', 'destroy'];
|
||||||
@ -5474,7 +5487,7 @@ S2.define('jquery.select2',[
|
|||||||
|
|
||||||
if (typeof options === 'object') {
|
if (typeof options === 'object') {
|
||||||
this.each(function () {
|
this.each(function () {
|
||||||
var instanceOptions = $.extend({}, options, true);
|
var instanceOptions = $.extend(true, {}, options);
|
||||||
|
|
||||||
var instance = new Select2($(this), instanceOptions);
|
var instance = new Select2($(this), instanceOptions);
|
||||||
});
|
});
|
||||||
@ -5517,13 +5530,6 @@ S2.define('jquery.select2',[
|
|||||||
return Select2;
|
return Select2;
|
||||||
});
|
});
|
||||||
|
|
||||||
S2.define('jquery.mousewheel',[
|
|
||||||
'jquery'
|
|
||||||
], function ($) {
|
|
||||||
// Used to shim jQuery.mousewheel for non-full builds.
|
|
||||||
return $;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Return the AMD loader configuration so it can be used outside of this file
|
// Return the AMD loader configuration so it can be used outside of this file
|
||||||
return {
|
return {
|
||||||
define: S2.define,
|
define: S2.define,
|
||||||
|
4
dist/js/select2.min.js
vendored
4
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user