/home/techb158/workloadmatch.com/bower_components/select2/src/js/select2/compat
NameSizeModeActions
containerCss.js14550777editdlrm
dropdownCss.js14230777editdlrm
initSelection.js11210777editdlrm
inputData.js29570777editdlrm
matcher.js9550777editdlrm
query.js6650777editdlrm
utils.js9710777editdlrm
Edit: /home/techb158/workloadmatch.com/bower_components/select2/src/js/select2/compat/initSelection.js (1121B)
define([ 'jquery' ], function ($) { function InitSelection (decorated, $element, options) { if (options.get('debug') && window.console && console.warn) { console.warn( 'Select2: The `initSelection` option has been deprecated in favor' + ' of a custom data adapter that overrides the `current` method. ' + 'This method is now called multiple times instead of a single ' + 'time when the instance is initialized. Support will be removed ' + 'for the `initSelection` option in future versions of Select2' ); } this.initSelection = options.get('initSelection'); this._isInitialized = false; decorated.call(this, $element, options); } InitSelection.prototype.current = function (decorated, callback) { var self = this; if (this._isInitialized) { decorated.call(this, callback); return; } this.initSelection.call(null, this.$element, function (data) { self._isInitialized = true; if (!$.isArray(data)) { data = [data]; } callback(data); }); }; return InitSelection; });