Fix #14282. Don't fondle getPreventDefault if preventDefault exists. Close gh-1365.

This commit is contained in:
Dave Methvin 2013-09-19 09:53:08 -04:00
parent d79c036ad6
commit 4671ef15c2

View File

@ -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;