Skip to content
Permalink
Browse files

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.
  • Loading branch information...
dmethvin committed Sep 18, 2012
1 parent 1474c06 commit e8e3e90a8620a945d2d4f6012a604d96db2bd317
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event.js
@@ -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();
}
}

0 comments on commit e8e3e90

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