From 181c8e1d5d4c8a4d39679b2bfc96ce1d8961e254 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Fri, 23 Nov 2018 14:22:18 +0800 Subject: [PATCH] fix timer clear method with do not reassign actions pointer --- src/replay/timer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replay/timer.ts b/src/replay/timer.ts index d6db248b..ec457e24 100644 --- a/src/replay/timer.ts +++ b/src/replay/timer.ts @@ -49,7 +49,7 @@ export default class Timer { } public clear() { - this.actions = []; + this.actions.length = 0; } private findActionIndex(action: actionWithDelay): number {