Skip to content
Permalink
Browse files

Event: Fix isDefaultPrevented for bubbled events in Android 2.3

Fixes #14897
Closes gh-1545
  • Loading branch information
mgol authored and dmethvin committed Mar 18, 2014
1 parent 890d441 commit ad032d3c7df04827989a4187117614c29bf3a4ad
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/event.js
@@ -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;

0 comments on commit ad032d3

Please sign in to comment.
You can’t perform that action at this time.