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

Function condense

2.0.3/Sizzle-annotation.js:1751–1770  ·  view source on GitHub ↗
(unmatched, map, filter, context, xml)

Source from the content-addressed store, hash-verified

1749 }
1750
1751 function condense(unmatched, map, filter, context, xml) {
1752 var elem,
1753 newUnmatched = [],
1754 i = 0,
1755 len = unmatched.length,
1756 mapped = map != null;
1757
1758 for (; i < len; i++) {
1759 if ((elem = unmatched[i])) {
1760 if (!filter || filter(elem, context, xml)) {
1761 newUnmatched.push(elem);
1762 if (mapped) {
1763 map.push(i);
1764 }
1765 }
1766 }
1767 }
1768
1769 return newUnmatched;
1770 }
1771
1772 function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
1773 if (postFilter && !postFilter[expando]) {

Callers 2

setMatcherFunction · 0.70
superMatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected