From a873558436383beea7a05fd07db7070a30420100 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Mon, 27 Apr 2015 09:57:46 +0300 Subject: [PATCH] Event: remove redundant guards for the event methods Fixes gh-2047 Closes gh-2125 --- src/event.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/event.js b/src/event.js index 1a721a959..b371b9a27 100644 --- a/src/event.js +++ b/src/event.js @@ -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(); } -- 2.39.5