]> source.dussan.org Git - jquery.git/commitdiff
Fix #14282. Don't fondle getPreventDefault if preventDefault exists. Close gh-1365.
authorDave Methvin <dave.methvin@gmail.com>
Thu, 19 Sep 2013 13:53:08 +0000 (09:53 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 19 Sep 2013 13:55:14 +0000 (09:55 -0400)
src/event.js

index d07f2476409ea19a351516372a9ca1cec5dee0f6..ea893067a0bfe595cd52fed2050bc9aa21e1de9c 100644 (file)
@@ -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;