We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c611e2 commit bc282a8Copy full SHA for bc282a8
src/event.js
@@ -36,13 +36,13 @@ jQuery.event = {
36
37
var handleObjIn, handleObj;
38
39
- if ( handler.handler ) {
+ if ( handler && handler.handler ) {
40
handleObjIn = handler;
41
handler = handleObjIn.handler;
42
}
43
44
// Make sure that the function being executed has a unique ID
45
- if ( !handler.guid ) {
+ if ( handler && !handler.guid ) {
46
handler.guid = jQuery.guid++;
47
48
@@ -116,7 +116,7 @@ jQuery.event = {
116
117
handleObj.type = type;
118
if ( !handleObj.guid ) {
119
- handleObj.guid = handler.guid;
+ ( handleObj && handler ) && ( handleObj.guid = handler.guid );
120
121
122
// Get the current list of functions bound to this event
0 commit comments