Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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
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.

