Skip to main content

Bug Tracker

Side navigation

#6245 closed bug (duplicate)

Opened March 08, 2010 08:46PM UTC

Closed March 08, 2010 08:51PM UTC

JavaScript error on unload

Reported by: erikkallen Owned by:
Priority: Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

I get an error when unloading one of my pages (reproducible for that page, but not for all pages) "undefined is null or not an object". The error occurs inside handle(), line 1903 in jquery-1.4.2.js.

Around there it says:

var events = jQuery.data(this, "events"), handlers = events[event.type];

if (events && handlers) {

...

The problem is that the events variable becomes undefined, which was supposed to be taken care of by the if statement, but it blows already when assigning handlers.

Attachments (0)
Change History (2)

Changed March 08, 2010 08:51PM UTC by erikkallen comment:1

For reference, in jquery-1.3.2, the same statement says

handlers = ( jQuery.data(this, "events") || {} )[event.type];

Changed March 08, 2010 08:51PM UTC by john comment:2

component: coreevent
resolution: → duplicate
status: newclosed

Duplicate of #6163.