From 66df8def10bba97dad10481d854f4268ec9f8a65 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Tue, 7 Feb 2017 19:35:14 -0600 Subject: [PATCH] Replace arrow function with regular function to prevent overiding function context --- app/assets/javascripts/commit/pipelines/pipelines_store.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab