aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-03-18 23:02:49 +0100
committerDave Methvin <dave.methvin@gmail.com>2014-03-20 23:10:36 -0400
commit98b5275c1225509f0cd66b3914353f1b72a6d0c2 (patch)
tree201a5260c2269d3488398f75320f55eb5863f016
parent80cf965e02e71dc1b11bf8c1b3d216b9ab4e99ac (diff)
downloadjquery-98b5275c1225509f0cd66b3914353f1b72a6d0c2.tar.gz
jquery-98b5275c1225509f0cd66b3914353f1b72a6d0c2.zip
Event: Remove redundant fallback to getPreventDefault()
Android 2.3 is happy with returnValue already used for oldIE; the getPreventDefault() fallback is not needed. Closes gh-1546
-rw-r--r--src/event.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/event.js b/src/event.js
index f6e26d8b5..16ca030bd 100644
--- a/src/event.js
+++ b/src/event.js
@@ -684,11 +684,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 ||
- src.defaultPrevented === undefined && (
- // Support: IE < 9
- src.returnValue === false ||
- // Support: Android < 4.0
- src.getPreventDefault && src.getPreventDefault() ) ?
+ src.defaultPrevented === undefined &&
+ // Support: IE < 9, Android < 4.0
+ src.returnValue === false ?
returnTrue :
returnFalse;