We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85577a3 commit a873558Copy full SHA for a873558
src/event.js
@@ -688,7 +688,7 @@ jQuery.Event.prototype = {
688
689
this.isDefaultPrevented = returnTrue;
690
691
- if ( e && e.preventDefault ) {
+ if ( e ) {
692
e.preventDefault();
693
}
694
},
@@ -697,7 +697,7 @@ jQuery.Event.prototype = {
697
698
this.isPropagationStopped = returnTrue;
699
700
- if ( e && e.stopPropagation ) {
701
e.stopPropagation();
702
703
@@ -706,7 +706,7 @@ jQuery.Event.prototype = {
706
707
this.isImmediatePropagationStopped = returnTrue;
708
709
- if ( e && e.stopImmediatePropagation ) {
710
e.stopImmediatePropagation();
711
712
0 commit comments