( unmatched, map, filter, context, xml )
| 5153 | } |
| 5154 | |
| 5155 | function 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 | |
| 5176 | function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { |
| 5177 | if ( postFilter && !postFilter[ expando ] ) { |
no test coverage detected