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
This commit is contained in:
Michał Gołębiowski 2014-03-18 23:02:49 +01:00 committed by Dave Methvin
parent 80cf965e02
commit 98b5275c12

View File

@ -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;