X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;h=c826f17b14fcec3522803525f59221be1649a736;hb=1960f28c0bf75b16e88460d6135058fd93202322;hp=02349984abcdbc84a13acf124693d3300c634f4b;hpb=05aaa3395723bbb48906ee8a99464a2c4e1e4193;p=jquery.git diff --git a/src/event.js b/src/event.js index 0234998..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.