diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-04-27 09:57:46 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-05-03 13:56:32 +0300 |
commit | a873558436383beea7a05fd07db7070a30420100 (patch) | |
tree | 08d98506dabf4158c79047fcb22c019e307c5c63 /src | |
parent | 85577a348a72ae765e0d7330b9e82985d23c94b7 (diff) | |
download | jquery-a873558436383beea7a05fd07db7070a30420100.tar.gz jquery-a873558436383beea7a05fd07db7070a30420100.zip |
Event: remove redundant guards for the event methods
Fixes gh-2047
Closes gh-2125
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 6 |
1 files 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(); } |