Side navigation
#6769 closed bug ()
Opened July 06, 2010 02:07AM UTC
Closed November 11, 2010 11:09PM UTC
Last modified February 23, 2011 11:11PM UTC
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: | |
Blocked by: | Blocking: |
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 );
}
Attachments (0)
Change History (3)
Changed October 14, 2010 03:15AM UTC by comment:1
need: | Review → Test Case |
---|---|
owner: | → riamu |
priority: | → low |
status: | new → pending |
Changed November 11, 2010 11:09PM UTC by comment:2
status: | pending → closed |
---|
Automatically closed due to 14 days of inactivity.
Changed February 23, 2011 11:11PM UTC by comment:3
This matter is resolved with the above as this circumstance only occurs when the array is null.
Could you please supply a valid test case here for us to evaluate?