diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-12-01 11:35:26 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-02 17:38:58 -0600 |
commit | 6dd2a5204e9c17410c627737c7fed14642ed4e76 (patch) | |
tree | 7d531feec0a8a29378d73f530a71ef3d967644ad /app/assets | |
parent | 54a794f2dfe88cdaa0dcc5c43f17fbc966082035 (diff) | |
download | gitlab-ce-6dd2a5204e9c17410c627737c7fed14642ed4e76.tar.gz |
use e instead of event variable name
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/diff.js.es6 | 10 | ||||
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js.es6 | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/app/assets/javascripts/diff.js.es6 b/app/assets/javascripts/diff.js.es6 index 239dd84d8a3..4730d4b4e7b 100644 --- a/app/assets/javascripts/diff.js.es6 +++ b/app/assets/javascripts/diff.js.es6 @@ -20,8 +20,8 @@ this.highlighSelectedLine(); } - handleClickUnfold(event) { - const $target = $(event.target); + handleClickUnfold(e) { + const $target = $(e.target); // current babel config relies on iterators implementation, so we cannot simply do: // const [oldLineNumber, newLineNumber] = this.lineNumbers($target.parent()); const ref = this.lineNumbers($target.parent()); @@ -69,9 +69,9 @@ } } - handleClickLineNum(event) { - const hash = $(event.currentTarget).attr('href'); - event.preventDefault(); + handleClickLineNum(e) { + const hash = $(e.currentTarget).attr('href'); + e.preventDefault(); if (window.history.pushState) { window.history.pushState(null, null, hash); } else { diff --git a/app/assets/javascripts/merge_request_tabs.js.es6 b/app/assets/javascripts/merge_request_tabs.js.es6 index 10a2f8091b8..0e69785a3d9 100644 --- a/app/assets/javascripts/merge_request_tabs.js.es6 +++ b/app/assets/javascripts/merge_request_tabs.js.es6 @@ -91,13 +91,13 @@ .off('click', '.js-show-tab', this.showTab); } - showTab(event) { - event.preventDefault(); - this.activateTab($(event.target).data('action')); + showTab(e) { + e.preventDefault(); + this.activateTab($(e.target).data('action')); } - tabShown(event) { - const $target = $(event.target); + tabShown(e) { + const $target = $(e.target); const action = $target.data('action'); if (action === 'commits') { |