Make sure events exist before trying to access them in jQuery.event.handle and removed unnecessary var statement. Fixes #6163.
This commit is contained in:
parent
9e06903a99
commit
7d5da0ee03
|
@ -374,7 +374,8 @@ jQuery.event = {
|
|||
namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)");
|
||||
}
|
||||
|
||||
var events = jQuery.data(this, "events"), handlers = events[ event.type ];
|
||||
events = jQuery.data(this, "events");
|
||||
handlers = (events || {})[ event.type ];
|
||||
|
||||
if ( events && handlers ) {
|
||||
// Clone the handlers to prevent manipulation
|
||||
|
|
Loading…
Reference in a new issue