From e8e3e90a8620a945d2d4f6012a604d96db2bd317 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 18 Sep 2012 14:26:21 -0400 Subject: [PATCH] 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. --- src/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.js b/src/event.js index d4c17cf31..c9231dabb 100644 --- a/src/event.js +++ b/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(); } } -- 2.39.5