From ad032d3c7df04827989a4187117614c29bf3a4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Tue, 18 Mar 2014 22:38:08 +0100 Subject: [PATCH] Event: Fix isDefaultPrevented for bubbled events in Android 2.3 Fixes #14897 Closes gh-1545 --- src/event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event.js b/src/event.js index b08fde6a7..f38d70a40 100644 --- a/src/event.js +++ b/src/event.js @@ -634,9 +634,9 @@ 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.defaultPrevented === undefined && - src.getPreventDefault && src.getPreventDefault() ? + // Support: Android < 4.0 + src.returnValue === false ? returnTrue : returnFalse;