Modify ↓
Ticket #4026 (closed enhancement: fixed)
Possible speed improv. for closest()
| Reported by: | Stefan | Owned by: | john |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3.2 |
| Component: | selector | Version: | 1.3.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Can you add an extra parameter that it can be a selector or a DOMElement? The DOMTree traversal should stop when if this node/selector is reached.
Thank you
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This was added in 1.4:
http://api.jquery.com/closest/#closest2