Side navigation
#1747 closed bug (invalid)
Opened September 28, 2007 04:58AM UTC
Closed September 28, 2007 05:07PM UTC
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 (1)
Changed September 28, 2007 05:07PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
"Unique only works with arrays of DOM elements. I've updated the [docs] page
to represent this."
--John