Bug Tracker

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:


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)

unique.patch (3.6 KB) - added by rworth 15 years ago.

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by rworth

Attachment: unique.patch added

comment:1 Changed 15 years ago by rworth

Resolution: invalid
Status: newclosed

"Unique only works with arrays of DOM elements. I've updated the [docs] page to represent this."


Note: See TracTickets for help on using tickets.