( unmatched, map, filter, context, xml )
| 4810 | } |
| 4811 | |
| 4812 | function condense( unmatched, map, filter, context, xml ) { |
| 4813 | var elem, |
| 4814 | newUnmatched = [], |
| 4815 | i = 0, |
| 4816 | len = unmatched.length, |
| 4817 | mapped = map != null; |
| 4818 | |
| 4819 | for ( ; i < len; i++ ) { |
| 4820 | if ( (elem = unmatched[i]) ) { |
| 4821 | if ( !filter || filter( elem, context, xml ) ) { |
| 4822 | newUnmatched.push( elem ); |
| 4823 | if ( mapped ) { |
| 4824 | map.push( i ); |
| 4825 | } |
| 4826 | } |
| 4827 | } |
| 4828 | } |
| 4829 | |
| 4830 | return newUnmatched; |
| 4831 | } |
| 4832 | |
| 4833 | function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { |
| 4834 | if ( postFilter && !postFilter[ expando ] ) { |
no test coverage detected