fix deprecated warning returnValue use preventDefault()

This commit is contained in:
Klaus Leithoff 2014-02-12 08:10:58 +00:00
parent f99ae4af0d
commit 85e844fd9b

View File

@ -5371,7 +5371,7 @@ 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 || src.returnValue === false ||
this.isDefaultPrevented = ( src.defaultPrevented || src.preventDefault() === false ||
src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
// Event type