MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / condense

Function condense

Three.js/js/jquery-1.9.1.js:5155–5174  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

5153}
5154
5155function condense( unmatched, map, filter, context, xml ) {
5156 var elem,
5157 newUnmatched = [],
5158 i = 0,
5159 len = unmatched.length,
5160 mapped = map != null;
5161
5162 for ( ; i < len; i++ ) {
5163 if ( (elem = unmatched[i]) ) {
5164 if ( !filter || filter( elem, context, xml ) ) {
5165 newUnmatched.push( elem );
5166 if ( mapped ) {
5167 map.push( i );
5168 }
5169 }
5170 }
5171 }
5172
5173 return newUnmatched;
5174}
5175
5176function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
5177 if ( postFilter && !postFilter[ expando ] ) {

Callers 2

setMatcherFunction · 0.85
superMatcherFunction · 0.85

Calls 1

filterFunction · 0.85

Tested by

no test coverage detected