From 98b5275c1225509f0cd66b3914353f1b72a6d0c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Tue, 18 Mar 2014 23:02:49 +0100 Subject: [PATCH] Event: Remove redundant fallback to getPreventDefault() Android 2.3 is happy with returnValue already used for oldIE; the getPreventDefault() fallback is not needed. Closes gh-1546 --- src/event.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/event.js b/src/event.js index f6e26d8b5..16ca030bd 100644 --- a/src/event.js +++ b/src/event.js @@ -684,11 +684,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 || - src.defaultPrevented === undefined && ( - // Support: IE < 9 - src.returnValue === false || - // Support: Android < 4.0 - src.getPreventDefault && src.getPreventDefault() ) ? + src.defaultPrevented === undefined && + // Support: IE < 9, Android < 4.0 + src.returnValue === false ? returnTrue : returnFalse; -- 2.39.5