mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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
This commit is contained in:
parent
80cf965e02
commit
98b5275c12
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user