MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / condense

Function condense

camera/jquery.js:2142–2161  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

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

Callers 2

setMatcherFunction · 0.85
superMatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected