Opened 15 years ago
Closed 15 years ago
#1747 closed bug (invalid)
unique() doesn't work for arrays of non-objects
Reported by: | rworth | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | unique numbers array objects | Cc: | |
Blocked by: | Blocking: |
Description
the unique() function does not reduce an array of value-types (number, string, etc.). It only seems to work on arrays of objects, since as of 1.2, it uses jQuery.data internally.
See attached for patch including unit tests.
Attachments (1)
Change History (2)
Changed 15 years ago by
Attachment: | unique.patch added |
---|
comment:1 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
"Unique only works with arrays of DOM elements. I've updated the [docs] page to represent this."
--John