MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / keysToMatches

Function keysToMatches

libs/datatables-binding-0.18/datatables.js:294–309  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

292 } else {
293 var key = crosstalkOptions.key;
294 function keysToMatches(keys) {
295 if (!keys) {
296 return null;
297 } else {
298 var selectedKeys = {};
299 for (var i = 0; i < keys.length; i++) {
300 selectedKeys[keys[i]] = true;
301 }
302 var matches = {};
303 for (var j = 0; j < key.length; j++) {
304 if (selectedKeys[key[j]])
305 matches[j] = true;
306 }
307 return matches;
308 }
309 }
310
311 function applyCrosstalkFilter(e) {
312 $table[0].ctfilter = keysToMatches(e.value);

Callers 2

applyCrosstalkFilterFunction · 0.85
applyCrosstalkSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected