mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix #12423. Ensure we can .apply() before we try.
I can't think of an uncontrived way to unit test this, it only occurs in IE when a BHO monkeys with the links.
This commit is contained in:
parent
1474c067f2
commit
e8e3e90a86
@ -317,7 +317,7 @@ jQuery.event = {
|
||||
}
|
||||
// Note that this is a bare JS function and not a jQuery handler
|
||||
handle = ontype && cur[ ontype ];
|
||||
if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
|
||||
if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user