提交 a96499cf 编写于 作者: R Regis

reduce heavy references

上级 c55ba052
...@@ -83,8 +83,8 @@ ...@@ -83,8 +83,8 @@
}; };
return commitRef; return commitRef;
}, },
addTimeInterval(id, that) { addTimeInterval(id, start) {
this.allTimeIntervals.push({ id, component: that }); this.allTimeIntervals.push({ id, start });
}, },
}, },
template: ` template: `
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
}; };
const startIntervalLoops = () => { const startIntervalLoops = () => {
this.allTimeIntervals.forEach(e => e.component.startInterval()); this.allTimeIntervals.forEach(e => e.start());
}; };
window.onbeforeunload = function onClose() { window.onbeforeunload = function onClose() {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
this.currentTime = new Date(); this.currentTime = new Date();
}, 1000); }, 1000);
this.addTimeInterval(this.timeInterval, this); this.addTimeInterval(this.timeInterval, this.startInterval);
}, },
computed: { computed: {
localTimeFinished() { localTimeFinished() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册