/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/matcher.js (955B)
define([ 'jquery' ], function ($) { function oldMatcher (matcher) { function wrappedMatcher (params, data) { var match = $.extend(true, {}, data); if (params.term == null || $.trim(params.term) === '') { return match; } if (data.children) { for (var c = data.children.length - 1; c >= 0; c--) { var child = data.children[c]; // Check if the child object matches // The old matcher returned a boolean true or false var doesMatch = matcher(params.term, child.text, child); // If the child didn't match, pop it off if (!doesMatch) { match.children.splice(c, 1); } } if (match.children.length > 0) { return match; } } if (matcher(params.term, data.text, data)) { return match; } return null; } return wrappedMatcher; } return oldMatcher; });