From ad032d3c7df04827989a4187117614c29bf3a4ad Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Tue, 18 Mar 2014 22:38:08 +0100 Subject: 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(-) (limited to 'src/event.js') 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; -- cgit v1.2.3