reverting fix deprecated warning returnValue use preventDefault() in jquery

This commit is contained in:
Ralf Becker 2014-02-12 08:17:47 +00:00
parent 0a5001ea11
commit af0876708f

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