Commit a96499cf authored by Regis's avatar Regis

reduce heavy references

parent c55ba052
......@@ -83,8 +83,8 @@
};
return commitRef;
},
addTimeInterval(id, that) {
this.allTimeIntervals.push({ id, component: that });
addTimeInterval(id, start) {
this.allTimeIntervals.push({ id, start });
},
},
template: `
......
......@@ -48,7 +48,7 @@
};
const startIntervalLoops = () => {
this.allTimeIntervals.forEach(e => e.component.startInterval());
this.allTimeIntervals.forEach(e => e.start());
};
window.onbeforeunload = function onClose() {
......
......@@ -17,7 +17,7 @@
this.currentTime = new Date();
}, 1000);
this.addTimeInterval(this.timeInterval, this);
this.addTimeInterval(this.timeInterval, this.startInterval);
},
computed: {
localTimeFinished() {
......
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