Skip to content

Commit

Permalink
Fix #14282. Don't fondle getPreventDefault if preventDefault exists. C…
Browse files Browse the repository at this point in the history
…lose gh-1365.
  • Loading branch information
dmethvin committed Sep 19, 2013
1 parent d79c036 commit 4671ef1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/event.js
Expand Up @@ -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;


Expand Down

0 comments on commit 4671ef1

Please sign in to comment.