Side navigation
#6828 closed bug (invalid)
Opened July 26, 2010 10:26PM UTC
Closed July 27, 2010 02:47AM UTC
Last modified March 15, 2012 01:40PM UTC
IE8 reports: 'null' is null or not an object (caused by indexing null as an array)
Reported by: | gravious | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | 'null' is null or not an object | Cc: | |
Blocked by: | Blocking: |
Description
IE8 reports: 'null' is null or not an object
On line 1919 of jquery-1.4.2.js:
var events = jQuery.data(this, "events"), handlers = events[ event.type ];
Line 2681 of jquery-1.3.2.js fixes the problem:
handlers = ( jQuery.data(this, "events") || {} )[event.type];
Or:
var events = jQuery.data(this, "events");
if (events!=null) var handlers = events[ event.type ];
Please reopen with a test case demonstrating how this problem occurs.