diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-03-18 22:38:08 +0100 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-20 23:16:30 -0400 |
commit | ad032d3c7df04827989a4187117614c29bf3a4ad (patch) | |
tree | 107449a6ac1ba1c08be8d9d909d3eab6541934fb /src/event.js | |
parent | 890d441aa5d319e49951ba6f0ec719cd4cb96759 (diff) | |
download | jquery-ad032d3c7df04827989a4187117614c29bf3a4ad.tar.gz jquery-ad032d3c7df04827989a4187117614c29bf3a4ad.zip |
Event: Fix isDefaultPrevented for bubbled events in Android 2.3
Fixes #14897
Closes gh-1545
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index b08fde6a7..f38d70a40 100644 --- a/src/event.js +++ b/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; |