mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Event: remove redundant guards for the event methods
Fixes gh-2047 Closes gh-2125
This commit is contained in:
parent
85577a348a
commit
a873558436
@ -688,7 +688,7 @@ jQuery.Event.prototype = {
|
||||
|
||||
this.isDefaultPrevented = returnTrue;
|
||||
|
||||
if ( e && e.preventDefault ) {
|
||||
if ( e ) {
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
@ -697,7 +697,7 @@ jQuery.Event.prototype = {
|
||||
|
||||
this.isPropagationStopped = returnTrue;
|
||||
|
||||
if ( e && e.stopPropagation ) {
|
||||
if ( e ) {
|
||||
e.stopPropagation();
|
||||
}
|
||||
},
|
||||
@ -706,7 +706,7 @@ jQuery.Event.prototype = {
|
||||
|
||||
this.isImmediatePropagationStopped = returnTrue;
|
||||
|
||||
if ( e && e.stopImmediatePropagation ) {
|
||||
if ( e ) {
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user