Commit 60e99239 authored by Filipa Lacerda's avatar Filipa Lacerda

Use function to define data instead of an object

parent 806dbf10
......@@ -11,8 +11,10 @@ document.addEventListener('DOMContentLoaded', () => {
const pipelineGraphApp = new Vue({
el: '#js-pipeline-graph-vue',
data: {
mediator,
data() {
return {
mediator,
};
},
components: {
pipelineGraph,
......
......@@ -6,8 +6,8 @@ import PipelineStore from './stores/pipeline_store';
import PipelineService from './services/pipeline_service';
export default class pipelinesMediator {
constructor(options) {
this.options = options || {};
constructor(options = {}) {
this.options = options;
this.store = new PipelineStore();
this.service = new PipelineService(options.endpoint);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment