From: Dave Methvin Date: Thu, 19 Sep 2013 13:53:08 +0000 (-0400) Subject: Fix #14282. Don't fondle getPreventDefault if preventDefault exists. Close gh-1365. X-Git-Tag: 2.1.0-beta1~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4671ef15c2d62962048fd4863911146fcc085f26;p=jquery.git Fix #14282. Don't fondle getPreventDefault if preventDefault exists. Close gh-1365. --- diff --git a/src/event.js b/src/event.js index d07f24764..ea893067a 100644 --- a/src/event.js +++ b/src/event.js @@ -635,9 +635,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 || - // Support: Android < 4.0 - src.getPreventDefault && src.getPreventDefault() ) ? + this.isDefaultPrevented = src.defaultPrevented || + // Support: Android < 4.0 + src.defaultPrevented === undefined && + src.getPreventDefault && src.getPreventDefault() ? returnTrue : returnFalse;