Bug Tracker

Modify

Ticket #6521 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

$.inArray(1, undefined); throws an error in IE8

Reported by: pulpulpullie Owned by:
Priority: Milestone: 1.4.3
Component: support Version: 1.4.2
Keywords: inarray Cc:
Blocking: Blocked by:

Description (last modified by dmethvin) (diff)

$.inArray(1, undefined);

throws an error in IE8 (haven't tested older versions).

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid
  • Description modified (diff)

That's because undefined is not an array.

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

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.