diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-05-26 17:05:43 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-05-26 17:08:18 +0300 |
commit | c7e6eff4dd3a98a4f591801159a0ef1c1f896a62 (patch) | |
tree | abd3748a8596ce9bb7bbb792a8ee624f12aeb489 /app/assets/javascripts/pipelines/pipeline_details_bundle.js | |
parent | cad686cc30309532ebf9a81ad37a60a98c84577c (diff) |
Use function to define data instead of an object
Diffstat (limited to 'app/assets/javascripts/pipelines/pipeline_details_bundle.js')
-rw-r--r-- | app/assets/javascripts/pipelines/pipeline_details_bundle.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/pipelines/pipeline_details_bundle.js b/app/assets/javascripts/pipelines/pipeline_details_bundle.js index 03b399cc726..5aab25e0348 100644 --- a/app/assets/javascripts/pipelines/pipeline_details_bundle.js +++ b/app/assets/javascripts/pipelines/pipeline_details_bundle.js @@ -11,8 +11,10 @@ document.addEventListener('DOMContentLoaded', () => { const pipelineGraphApp = new Vue({ el: '#js-pipeline-graph-vue', - data: { - mediator, + data() { + return { + mediator, + }; }, components: { pipelineGraph, |