Side navigation
#6642 closed bug (duplicate)
Opened June 07, 2010 10:37AM UTC
Closed October 02, 2010 02:00PM UTC
"unload" browser event leads to an error in jquery 1.4.2 on IE7
Reported by: | andreakn | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | event | Version: | 1.4.2 |
Keywords: | event error unload | Cc: | |
Blocked by: | Blocking: |
Description
on line 1919 in the uncompressed jquery-1.4.2.js:
I get a bug where events == undefined in IE7 (7.0.5730.13)
the same bug is present in the minified file jquery-1.4.2.min.js
a fix could be to change
var events = jQuery.data(this, "events"), handlers = events[event.type];
into
var events = jQuery.data(this, "events");
var handlers = null;
if (events) {
handlers = events[event.type];
}
Please reopen the ticket with a test case demonstrating the bug.