summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-08 02:53:52 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-02-08 02:53:52 +0000
commit980ffa201e1bc3171faf08705cd5d2078483b63f (patch)
tree14015c67bd53a59599379a8db55805200a27a77e
parente52a03ae712bcbec9f8016751eeeb2f564fdf5c7 (diff)
parent66df8def10bba97dad10481d854f4268ec9f8a65 (diff)
downloadgitlab-ce-980ffa201e1bc3171faf08705cd5d2078483b63f.tar.gz
Merge branch 'fix-pipelines-store-test' into 'master'
Replace arrow function with regular function to prevent overiding function context See merge request !9057
-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);