Event: remove redundant guards for the event methods

Fixes gh-2047
Closes gh-2125
This commit is contained in:
Oleg Gaidarenko 2015-04-27 09:57:46 +03:00
parent 85577a348a
commit a873558436

View File

@ -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();
}