Modify ↓
Ticket #6769 (closed bug)
in IE8, jQuery.inArray call fails with error "'indexOf' is null or not an object"
| Reported by: | riamu | Owned by: | riamu |
|---|---|---|---|
| Priority: | low | Milestone: | 1.4.3 |
| Component: | core | Version: | 1.4.2 |
| Keywords: | IE explorer inArray indexOf | Cc: | |
| Blocking: | Blocked by: |
Description
The method currently tests for existence using basic syntax:
if ( array.indexOf ) {
return array.indexOf( elem );
}
Suggest changing it to:
if (typeof array.indexOf == 'function') {
return array.indexOf( elem );
}
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.

Could you please supply a valid test case here for us to evaluate?