Permalink
Browse files

Event: remove redundant guards for the event methods

Fixes gh-2047
Closes gh-2125
  • Loading branch information...
markelog committed Apr 27, 2015
1 parent 85577a3 commit a873558436383beea7a05fd07db7070a30420100
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/event.js
View
@@ -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();
}

0 comments on commit a873558

Please sign in to comment.