MCPcopy Index your code
hub / github.com/caike/jQuery-Simple-Timer / condense

Function condense

examples/bundle.js:2515–2534  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

2513}
2514
2515function condense( unmatched, map, filter, context, xml ) {
2516 var elem,
2517 newUnmatched = [],
2518 i = 0,
2519 len = unmatched.length,
2520 mapped = map != null;
2521
2522 for ( ; i < len; i++ ) {
2523 if ( (elem = unmatched[i]) ) {
2524 if ( !filter || filter( elem, context, xml ) ) {
2525 newUnmatched.push( elem );
2526 if ( mapped ) {
2527 map.push( i );
2528 }
2529 }
2530 }
2531 }
2532
2533 return newUnmatched;
2534}
2535
2536function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2537 if ( postFilter && !postFilter[ expando ] ) {

Callers 2

setMatcherFunction · 0.85
superMatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected