MCPcopy Create free account
hub / github.com/components/jquery / condense

Function condense

jquery.js:2029–2048  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

2027}
2028
2029function condense( unmatched, map, filter, context, xml ) {
2030 var elem,
2031 newUnmatched = [],
2032 i = 0,
2033 len = unmatched.length,
2034 mapped = map != null;
2035
2036 for ( ; i < len; i++ ) {
2037 if ( ( elem = unmatched[ i ] ) ) {
2038 if ( !filter || filter( elem, context, xml ) ) {
2039 newUnmatched.push( elem );
2040 if ( mapped ) {
2041 map.push( i );
2042 }
2043 }
2044 }
2045 }
2046
2047 return newUnmatched;
2048}
2049
2050function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2051 if ( postFilter && !postFilter[ jQuery.expando ] ) {

Callers 2

setMatcherFunction · 0.70
superMatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected