mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Make sure no exception is thrown if no event handler is found (which is the case for applets, objects, and embeds).
This commit is contained in:
parent
05aaa33957
commit
1960f28c0b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user