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