mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix #14282. Don't fondle getPreventDefault if preventDefault exists. Close gh-1365.
This commit is contained in:
parent
d79c036ad6
commit
4671ef15c2
@ -635,9 +635,10 @@ jQuery.Event = function( src, props ) {
|
|||||||
|
|
||||||
// Events bubbling up the document may have been marked as prevented
|
// Events bubbling up the document may have been marked as prevented
|
||||||
// by a handler lower down the tree; reflect the correct value.
|
// by a handler lower down the tree; reflect the correct value.
|
||||||
this.isDefaultPrevented = ( src.defaultPrevented ||
|
this.isDefaultPrevented = src.defaultPrevented ||
|
||||||
// Support: Android < 4.0
|
// Support: Android < 4.0
|
||||||
src.getPreventDefault && src.getPreventDefault() ) ?
|
src.defaultPrevented === undefined &&
|
||||||
|
src.getPreventDefault && src.getPreventDefault() ?
|
||||||
returnTrue :
|
returnTrue :
|
||||||
returnFalse;
|
returnFalse;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user