aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-08-19 19:31:15 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2013-08-19 19:31:15 +0200
commit215cc09067f08aa67ed467c667efccbbf3bf4468 (patch)
treeb4ad15ad97d6e456b602975b27523868f7cd7aec /src
parent584a4af9c8633b35fe49152c81977de03f885826 (diff)
downloadjquery-215cc09067f08aa67ed467c667efccbbf3bf4468.tar.gz
jquery-215cc09067f08aa67ed467c667efccbbf3bf4468.zip
No ticket. Add a support note about defaultPrevented missing in Android < 4.0
Diffstat (limited to 'src')
-rw-r--r--src/event.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index cd468d2a3..541326f6d 100644
--- a/src/event.js
+++ b/src/event.js
@@ -633,7 +633,10 @@ 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.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
+ // Support: Android < 4.0
+ src.getPreventDefault && src.getPreventDefault() ) ?
+ returnTrue :
+ returnFalse;
// Event type
} else {