Modify ↓
Ticket #6521 (closed bug: invalid)
$.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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

That's because undefined is not an array.
http://api.jquery.com/jQuery.inArray/