Skip to main content

Bug Tracker

Side navigation

#6243 closed bug (duplicate)

Opened March 08, 2010 04:22PM UTC

Closed March 08, 2010 04:31PM UTC

Last modified March 08, 2010 04:31PM UTC

Null-checking is missing in 'events' extraction during event handler

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

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;

Attachments (0)
Change History (3)

Changed March 08, 2010 04:25PM UTC by stimpy77 comment:1

Missed #6163. Please close. (Sorry.)

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

resolution: → duplicate
status: newclosed

Changed March 08, 2010 04:31PM UTC by john comment:3

component: unfiledevent