Use const variables when applicable

This commit is contained in:
2019-11-17 18:25:14 +09:00
parent 454e8572e3
commit 878f1913e3
39 changed files with 405 additions and 403 deletions

View File

@ -26,7 +26,7 @@ export default class MutationQueue {
}
mutateAll() {
let start = performance.now()
const start = performance.now()
for(let i = 0; i < this.mutations.length; i++) {
if(performance.now() - start > timeCapacity) {
@ -49,7 +49,7 @@ export default class MutationQueue {
this.mutations.length = 0
if(this.onClearCallBacks.length > 0) {
for(let callback of this.onClearCallBacks) {
for(const callback of this.onClearCallBacks) {
callback()
}