Opened 12 years ago
Closed 12 years ago
#7964 closed enhancement (fixed)
Some traversal methods perform an unnecessary uniqueness check
Reported by: | scottgonzalez | Owned by: | scott_gonzalez |
---|---|---|---|
Priority: | low | Milestone: | 1.5 |
Component: | traversing | Version: | 1.4.4 |
Keywords: | Cc: | jeresig | |
Blocked by: | Blocking: |
Description
Methods like .children(), .next() and .prev() are guaranteed to produce a unique result when called on a unique set. These methods are generated by a function which always checks for uniqueness if the original set contained more than one element. Methods that are guaranteed to produce a unique result should not go through the uniqueness check as this is fairly expensive in some browsers.
Change History (2)
comment:1 Changed 12 years ago by
Cc: | jeresig added |
---|---|
Owner: | set to scott_gonzalez |
Priority: | undecided → low |
Status: | new → assigned |
comment:2 Changed 12 years ago by
Component: | unfiled → traversing |
---|---|
Milestone: | 1.next → 1.5 |
Resolution: | → fixed |
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This pull request was landed: https://github.com/jquery/jquery/pull/180