mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
No need to set returnValue if preventDefault exists. Thanks kangax for the catch.
This commit is contained in:
parent
7350e2e1cc
commit
be59693037
@ -583,9 +583,11 @@ jQuery.Event.prototype = {
|
||||
// if preventDefault exists run it on the original event
|
||||
if ( e.preventDefault ) {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
// otherwise set the returnValue property of the original event to false (IE)
|
||||
} else {
|
||||
e.returnValue = false;
|
||||
}
|
||||
},
|
||||
stopPropagation: function() {
|
||||
this.isPropagationStopped = returnTrue;
|
||||
|
Loading…
Reference in New Issue
Block a user