fix timer clear method with do not reassign actions pointer
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user