Bug Tracker

Modify

Ticket #6243 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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;

Change History

comment:1 Changed 3 years ago by stimpy77

Missed #6163. Please close. (Sorry.)

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to duplicate

comment:3 Changed 3 years ago by john

  • Component changed from unfiled to event

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.