Bug Tracker

Modify

Ticket #6335 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

$.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:
Blocking: Blocked by:

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

test.html Download (508 bytes) - added by HomerJ 4 years ago.

Change History

Changed 4 years ago by HomerJ

comment:1 Changed 4 years ago by HomerJ

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

comment:2 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.