From 4671ef15c2d62962048fd4863911146fcc085f26 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 19 Sep 2013 09:53:08 -0400 Subject: [PATCH] Fix #14282. Don't fondle getPreventDefault if preventDefault exists. Close gh-1365. --- src/event.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/event.js b/src/event.js index d07f24764..ea893067a 100644 --- a/src/event.js +++ b/src/event.js @@ -635,9 +635,10 @@ jQuery.Event = function( src, props ) { // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = ( src.defaultPrevented || - // Support: Android < 4.0 - src.getPreventDefault && src.getPreventDefault() ) ? + this.isDefaultPrevented = src.defaultPrevented || + // Support: Android < 4.0 + src.defaultPrevented === undefined && + src.getPreventDefault && src.getPreventDefault() ? returnTrue : returnFalse; -- 2.39.5