( unmatched, map, filter, context, xml )
| 2214 | } |
| 2215 | |
| 2216 | function condense( unmatched, map, filter, context, xml ) { |
| 2217 | var elem, |
| 2218 | newUnmatched = [], |
| 2219 | i = 0, |
| 2220 | len = unmatched.length, |
| 2221 | mapped = map != null; |
| 2222 | |
| 2223 | for ( ; i < len; i++ ) { |
| 2224 | if ( (elem = unmatched[i]) ) { |
| 2225 | if ( !filter || filter( elem, context, xml ) ) { |
| 2226 | newUnmatched.push( elem ); |
| 2227 | if ( mapped ) { |
| 2228 | map.push( i ); |
| 2229 | } |
| 2230 | } |
| 2231 | } |
| 2232 | } |
| 2233 | |
| 2234 | return newUnmatched; |
| 2235 | } |
| 2236 | |
| 2237 | function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { |
| 2238 | if ( postFilter && !postFilter[ expando ] ) { |
no test coverage detected