Event: Fix isDefaultPrevented for bubbled events in Android 2.3

Fixes #14897
Closes gh-1545
This commit is contained in:
Michał Gołębiowski 2014-03-18 22:38:08 +01:00 committed by Dave Methvin
parent 890d441aa5
commit ad032d3c7d

View File

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