fix timer clear method with do not reassign actions pointer

This commit is contained in:
Yanzhen Yu
2018-11-23 14:22:18 +08:00
parent e20b8ae8f1
commit 181c8e1d5d

View File

@@ -49,7 +49,7 @@ export default class Timer {
} }
public clear() { public clear() {
this.actions = []; this.actions.length = 0;
} }
private findActionIndex(action: actionWithDelay): number { private findActionIndex(action: actionWithDelay): number {