MCPcopy Index your code
hub / github.com/jquery/jquery / condense

Function condense

dist-module/jquery.module.js:2015–2034  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

2013}
2014
2015function 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
2036function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2037 if ( postFilter && !postFilter[ jQuery.expando ] ) {

Callers 2

setMatcherFunction · 0.70
superMatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected