diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-08 05:53:52 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-08 05:53:52 +0300 |
commit | 980ffa201e1bc3171faf08705cd5d2078483b63f (patch) | |
tree | 14015c67bd53a59599379a8db55805200a27a77e /app | |
parent | e52a03ae712bcbec9f8016751eeeb2f564fdf5c7 (diff) | |
parent | 66df8def10bba97dad10481d854f4268ec9f8a65 (diff) |
Merge branch 'fix-pipelines-store-test' into 'master'
Replace arrow function with regular function to prevent overiding function context
See merge request !9057
Diffstat (limited to 'app')
-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); |