Ticket #6243 (closed bug: duplicate)
Null-checking is missing in 'events' extraction during event handler
|Reported by:||stimpy77||Owned by:|
After switching from jQuery 1.3 to 1.4.2, on one page, page unload errors on this line in jQuery 1.4.2 because events is null:
var events = jQuery.data(this, "events"), handlers = events[ event.type ];
This line in jQuery should be ..
var events = jQuery.data(this, "events"), handlers = events ? events[ event.type ] : null;