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