Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e8e3e90a8620a945d2d4f6012a604d96db2bd317 1 parent 1474c06
@dmethvin dmethvin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/event.js
View
2  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();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.