(unmatched, map, filter, context, xml)
| 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]) { |
no outgoing calls
no test coverage detected