Skip to main content

Bug Tracker

Side navigation

#6335 closed bug (invalid)

Opened March 22, 2010 01:02PM UTC

Closed June 15, 2010 01:00AM UTC

$.unique bug with microsoft internet explorer (8)

Reported by: HomerJ Owned by:
Priority: Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

i found this issue while using $.unique with a native array on MSIE:

code:

var eventIds = [ "b5f4cea2-5585-457d-a1fd-11429bdf06e3", "b5f4cea2-5585-457d-a1fd-11429bdf06e3", "8af91d35-2dba-4281-a3b5-4dde09a0e4fc", "8af91d35-2dba-4281-a3b5-4dde09a0e4fc" ];

eventIds = $.unique(eventIds);

results in:

eventIds: [ "8af91d35-2dba-4281-a3b5-4dde09a0e4fc", "b5f4cea2-5585-457d-a1fd-11429bdf06e3", "8af91d35-2dba-4281-a3b5-4dde09a0e4fc" ];

and

eventIds[0] === eventIds[2]: true

Attachments (1)
  • test.html (0.5 KB) - added by HomerJ March 22, 2010 01:36PM UTC.
Change History (2)

Changed March 23, 2010 02:40PM UTC by HomerJ comment:1

i forgot to add that it works perfectly with gecko and is buggy with any version of ms internet explorer

Changed June 15, 2010 01:00AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

http://api.jquery.com/jQuery.unique/

This function only works on plain JavaScript arrays of DOM elements, and is chiefly used internally by jQuery.