( unmatched, map, filter, context, xml )
| 2253 | } |
| 2254 | |
| 2255 | function condense( unmatched, map, filter, context, xml ) { |
| 2256 | var elem, |
| 2257 | newUnmatched = [], |
| 2258 | i = 0, |
| 2259 | len = unmatched.length, |
| 2260 | mapped = map != null; |
| 2261 | |
| 2262 | for ( ; i < len; i++ ) { |
| 2263 | if ( (elem = unmatched[i]) ) { |
| 2264 | if ( !filter || filter( elem, context, xml ) ) { |
| 2265 | newUnmatched.push( elem ); |
| 2266 | if ( mapped ) { |
| 2267 | map.push( i ); |
| 2268 | } |
| 2269 | } |
| 2270 | } |
| 2271 | } |
| 2272 | |
| 2273 | return newUnmatched; |
| 2274 | } |
| 2275 | |
| 2276 | function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { |
| 2277 | if ( postFilter && !postFilter[ expando ] ) { |
no test coverage detected