MCPcopy Create free account
hub / github.com/JsAaron/jQuery / condense

Function condense

2.0.3/Sizzle.js:1580–1599  ·  view source on GitHub ↗
(unmatched, map, filter, context, xml)

Source from the content-addressed store, hash-verified

1578 }
1579
1580 function condense(unmatched, map, filter, context, xml) {
1581 var elem,
1582 newUnmatched = [],
1583 i = 0,
1584 len = unmatched.length,
1585 mapped = map != null;
1586
1587 for (; i < len; i++) {
1588 if ((elem = unmatched[i])) {
1589 if (!filter || filter(elem, context, xml)) {
1590 newUnmatched.push(elem);
1591 if (mapped) {
1592 map.push(i);
1593 }
1594 }
1595 }
1596 }
1597
1598 return newUnmatched;
1599 }
1600
1601 function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
1602 if (postFilter && !postFilter[expando]) {

Callers 2

setMatcherFunction · 0.70
superMatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected