Skip to content
Permalink
Browse files

Make sure no exception is thrown if no event handler is found (which …

…is the case for applets, objects, and embeds).
  • Loading branch information
jeresig committed Jan 13, 2010
1 parent 05aaa33 commit 1960f28c0bf75b16e88460d6135058fd93202322
Showing with 6 additions and 0 deletions.
  1. +6 −0 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.

0 comments on commit 1960f28

Please sign in to comment.
You can’t perform that action at this time.