( unmatched, map, filter, context, xml )
| 2013 | } |
| 2014 | |
| 2015 | function condense( unmatched, map, filter, context, xml ) { |
| 2016 | var elem, |
| 2017 | newUnmatched = [], |
| 2018 | i = 0, |
| 2019 | len = unmatched.length, |
| 2020 | mapped = map != null; |
| 2021 | |
| 2022 | for ( ; i < len; i++ ) { |
| 2023 | if ( ( elem = unmatched[ i ] ) ) { |
| 2024 | if ( !filter || filter( elem, context, xml ) ) { |
| 2025 | newUnmatched.push( elem ); |
| 2026 | if ( mapped ) { |
| 2027 | map.push( i ); |
| 2028 | } |
| 2029 | } |
| 2030 | } |
| 2031 | } |
| 2032 | |
| 2033 | return newUnmatched; |
| 2034 | } |
| 2035 | |
| 2036 | function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { |
| 2037 | if ( postFilter && !postFilter[ jQuery.expando ] ) { |
no outgoing calls
no test coverage detected