diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-02-07 19:35:14 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-02-07 19:35:14 -0600 |
commit | 66df8def10bba97dad10481d854f4268ec9f8a65 (patch) | |
tree | 2c26b7d0faa38cac7502f22bc413ca1930bd3fe8 | |
parent | f00f3f0743392bd59947354526c0221083dc204c (diff) | |
download | gitlab-ce-66df8def10bba97dad10481d854f4268ec9f8a65.tar.gz |
Replace arrow function with regular function to prevent overiding function context
-rw-r--r-- | app/assets/javascripts/commit/pipelines/pipelines_store.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/commit/pipelines/pipelines_store.js.es6 b/app/assets/javascripts/commit/pipelines/pipelines_store.js.es6 index f1b41911b73..11a3449d99a 100644 --- a/app/assets/javascripts/commit/pipelines/pipelines_store.js.es6 +++ b/app/assets/javascripts/commit/pipelines/pipelines_store.js.es6 @@ -26,7 +26,7 @@ class PipelinesStore { */ startTimeAgoLoops() { const startTimeLoops = () => { - this.timeLoopInterval = setInterval(() => { + this.timeLoopInterval = setInterval(function timeloopInterval() { this.$children[0].$children.reduce((acc, component) => { const timeAgoComponent = component.$children.filter(el => el.$options._componentTag === 'time-ago')[0]; acc.push(timeAgoComponent); |