Commit ad032d3c authored by Michał Gołębiowski's avatar Michał Gołębiowski Committed by Dave Methvin

Event: Fix isDefaultPrevented for bubbled events in Android 2.3

Fixes #14897
Closes gh-1545
parent 890d441a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment