X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fevent.js;h=c826f17b14fcec3522803525f59221be1649a736;hb=d431519d61f55af8bd1714d00126c948d888f3a9;hp=ea1c14e9436c15d12d732a6f97d58ff357822186;hpb=1d8b3a9af22c6c34383b6653ecc1e44c48325b94;p=jquery.git diff --git a/src/event.js b/src/event.js index ea1c14e..c826f17 100644 --- a/src/event.js +++ b/src/event.js @@ -57,6 +57,12 @@ jQuery.event = { handle = jQuery.data( elem, "handle", eventHandle ); } + // If no handle is found then we must be trying to bind to one of the + // banned noData elements + if ( !handle ) { + return; + } + // Add elem as a property of the handle function // This is to prevent a memory leak with non-native // event in IE. @@ -919,8 +925,8 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl return fn ? this.bind( name, fn ) : this.trigger( name ); }; - if ( jQuery.fnAttr ) { - jQuery.fnAttr[ name ] = true; + if ( jQuery.attrFn ) { + jQuery.attrFn[ name ] = true; } });