Skip to content
Permalink
Browse files

Fix #14282. Don't fondle getPreventDefault if preventDefault exists. C…

…lose gh-1365.
  • Loading branch information...
dmethvin committed Sep 19, 2013
1 parent d79c036 commit 4671ef15c2d62962048fd4863911146fcc085f26
Showing with 4 additions and 3 deletions.
  1. +4 −3 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;

0 comments on commit 4671ef1

Please sign in to comment.
You can’t perform that action at this time.