MCPcopy Create free account
hub / github.com/JsAaron/jQuery / condense

Function condense

2.1.1/test/jquery-1.11.1.js:2178–2197  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

2176}
2177
2178function condense( unmatched, map, filter, context, xml ) {
2179 var elem,
2180 newUnmatched = [],
2181 i = 0,
2182 len = unmatched.length,
2183 mapped = map != null;
2184
2185 for ( ; i < len; i++ ) {
2186 if ( (elem = unmatched[i]) ) {
2187 if ( !filter || filter( elem, context, xml ) ) {
2188 newUnmatched.push( elem );
2189 if ( mapped ) {
2190 map.push( i );
2191 }
2192 }
2193 }
2194 }
2195
2196 return newUnmatched;
2197}
2198
2199function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2200 if ( postFilter && !postFilter[ expando ] ) {

Callers 2

setMatcherFunction · 0.70
superMatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected