Skip to main content

Bug Tracker

Side navigation

#6290 closed bug (invalid)

Opened March 15, 2010 01:56PM UTC

Closed March 18, 2010 12:21AM UTC

Inconsistent $.inArray behavior

Reported by: timmolendijk Owned by:
Priority: Milestone: 1.4.3
Component: misc Version: 1.4.2
Keywords: inArray Cc:
Blocked by: Blocking:
Description

Firefox (3.6 for OS X), Chrome (5 for OS X), Safari (4):

$.inArray(undefined, []) === -1

Internet Explorer (7 & 8):

$.inArray(undefined, []) === null

Attachments (0)
Change History (3)

Changed March 15, 2010 05:17PM UTC by timmolendijk comment:1

I just found out that $.inArray(<anything>, []) === null in IE7&8

Changed March 15, 2010 05:26PM UTC by timmolendijk comment:2

And then it turned out the behavior is caused by some external crap. Not sure yet what exactly. But I think this issue can be closed.

Changed March 18, 2010 12:21AM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed