Commit 6dd2a520 authored by Mike Greiling's avatar Mike Greiling

use e instead of event variable name

parent 54a794f2
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
this.highlighSelectedLine(); this.highlighSelectedLine();
} }
handleClickUnfold(event) { handleClickUnfold(e) {
const $target = $(event.target); const $target = $(e.target);
// current babel config relies on iterators implementation, so we cannot simply do: // current babel config relies on iterators implementation, so we cannot simply do:
// const [oldLineNumber, newLineNumber] = this.lineNumbers($target.parent()); // const [oldLineNumber, newLineNumber] = this.lineNumbers($target.parent());
const ref = this.lineNumbers($target.parent()); const ref = this.lineNumbers($target.parent());
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,9 @@
} }
} }
handleClickLineNum(event) { handleClickLineNum(e) {
const hash = $(event.currentTarget).attr('href'); const hash = $(e.currentTarget).attr('href');
event.preventDefault(); e.preventDefault();
if (window.history.pushState) { if (window.history.pushState) {
window.history.pushState(null, null, hash); window.history.pushState(null, null, hash);
} else { } else {
......
...@@ -91,13 +91,13 @@ ...@@ -91,13 +91,13 @@
.off('click', '.js-show-tab', this.showTab); .off('click', '.js-show-tab', this.showTab);
} }
showTab(event) { showTab(e) {
event.preventDefault(); e.preventDefault();
this.activateTab($(event.target).data('action')); this.activateTab($(e.target).data('action'));
} }
tabShown(event) { tabShown(e) {
const $target = $(event.target); const $target = $(e.target);
const action = $target.data('action'); const action = $target.data('action');
if (action === 'commits') { if (action === 'commits') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment