From 60004e68f86465bd1e2cab4d818c913f57147e31 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. (cherry picked from commit 4671ef15c2d62962048fd4863911146fcc085f26) Conflicts: src/event.js --- src/event.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/event.js b/src/event.js index 12ad019c2..f99613851 100644 --- a/src/event.js +++ b/src/event.js @@ -680,8 +680,14 @@ 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 || src.returnValue === false || - src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && ( + // Support: IE < 9 + src.returnValue === false || + // Support: Android < 4.0 + src.getPreventDefault && src.getPreventDefault() ) ? + returnTrue : + returnFalse; // Event type } else { -- 2.39.5