MCPcopy Create free account
hub / github.com/ceph/ceph / condense

Function condense

qa/workunits/erasure-code/jquery.js:4812–4831  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

4810}
4811
4812function condense( unmatched, map, filter, context, xml ) {
4813 var elem,
4814 newUnmatched = [],
4815 i = 0,
4816 len = unmatched.length,
4817 mapped = map != null;
4818
4819 for ( ; i < len; i++ ) {
4820 if ( (elem = unmatched[i]) ) {
4821 if ( !filter || filter( elem, context, xml ) ) {
4822 newUnmatched.push( elem );
4823 if ( mapped ) {
4824 map.push( i );
4825 }
4826 }
4827 }
4828 }
4829
4830 return newUnmatched;
4831}
4832
4833function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
4834 if ( postFilter && !postFilter[ expando ] ) {

Callers 2

setMatcherFunction · 0.85
superMatcherFunction · 0.85

Calls 2

filterFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected