Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-02-08 04:35:14 +0300
committerClement Ho <ClemMakesApps@gmail.com>2017-02-08 04:35:14 +0300
commit66df8def10bba97dad10481d854f4268ec9f8a65 (patch)
tree2c26b7d0faa38cac7502f22bc413ca1930bd3fe8 /app
parentf00f3f0743392bd59947354526c0221083dc204c (diff)
Replace arrow function with regular function to prevent overiding function context
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/commit/pipelines/pipelines_store.js.es62
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);