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

Function condense

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

Source from the content-addressed store, hash-verified

2139}
2140
2141function condense( unmatched, map, filter, context, xml ) {
2142 var elem,
2143 newUnmatched = [],
2144 i = 0,
2145 len = unmatched.length,
2146 mapped = map != null;
2147
2148 for ( ; i < len; i++ ) {
2149 if ( (elem = unmatched[i]) ) {
2150 if ( !filter || filter( elem, context, xml ) ) {
2151 newUnmatched.push( elem );
2152 if ( mapped ) {
2153 map.push( i );
2154 }
2155 }
2156 }
2157 }
2158
2159 return newUnmatched;
2160}
2161
2162function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2163 if ( postFilter && !postFilter[ expando ] ) {

Callers 2

setMatcherFunction · 0.70
superMatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected