Skip to content

Commit

Permalink
Fixes #7229 events with null handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 22, 2010
1 parent 6c611e2 commit bc282a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/event.js
Expand Up @@ -36,13 +36,13 @@ jQuery.event = {

var handleObjIn, handleObj;

if ( handler.handler ) {
if ( handler && handler.handler ) {
handleObjIn = handler;
handler = handleObjIn.handler;
}

// Make sure that the function being executed has a unique ID
if ( !handler.guid ) {
if ( handler && !handler.guid ) {
handler.guid = jQuery.guid++;
}

Expand Down Expand Up @@ -116,7 +116,7 @@ jQuery.event = {

handleObj.type = type;
if ( !handleObj.guid ) {
handleObj.guid = handler.guid;
( handleObj && handler ) && ( handleObj.guid = handler.guid );
}

// Get the current list of functions bound to this event
Expand Down

0 comments on commit bc282a8

Please sign in to comment.