Skip to content

Commit a873558

Browse files
committed
Event: remove redundant guards for the event methods
Fixes gh-2047 Closes gh-2125
1 parent 85577a3 commit a873558

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/event.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ jQuery.Event.prototype = {
688688

689689
this.isDefaultPrevented = returnTrue;
690690

691-
if ( e && e.preventDefault ) {
691+
if ( e ) {
692692
e.preventDefault();
693693
}
694694
},
@@ -697,7 +697,7 @@ jQuery.Event.prototype = {
697697

698698
this.isPropagationStopped = returnTrue;
699699

700-
if ( e && e.stopPropagation ) {
700+
if ( e ) {
701701
e.stopPropagation();
702702
}
703703
},
@@ -706,7 +706,7 @@ jQuery.Event.prototype = {
706706

707707
this.isImmediatePropagationStopped = returnTrue;
708708

709-
if ( e && e.stopImmediatePropagation ) {
709+
if ( e ) {
710710
e.stopImmediatePropagation();
711711
}
712712

0 commit comments

Comments
 (0)