2015-03-15 02:05:24 +03:00
|
|
|
// Autoload the jQuery bindings
|
|
|
|
// We know that all of the modules exist above this, so we're safe
|
|
|
|
var select2 = S2.require('jquery.select2');
|
|
|
|
|
|
|
|
// Hold the AMD module references on the jQuery function that was just loaded
|
|
|
|
// This allows Select2 to use the internal loader outside of this file, such
|
|
|
|
// as in the language files.
|
2015-03-18 17:48:47 +03:00
|
|
|
jQuery.fn.select2.amd = S2;
|
2015-03-15 02:05:24 +03:00
|
|
|
|
|
|
|
// Return the Select2 instance for anyone who is importing it.
|
|
|
|
return select2;
|
|
|
|
}));
|