From 6adf2817355d960b19822a91f11c7a5582af624f Mon Sep 17 00:00:00 2001 From: Paul Taylor Date: Sat, 3 Jun 2017 14:24:32 -0700 Subject: [PATCH] fix(AsapScheduler): Fix issue where canceling an asap or animationFrame action early could throw #2625 #2594 --- src/scheduler/AsyncAction.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scheduler/AsyncAction.ts b/src/scheduler/AsyncAction.ts index 891dc991b17..31a95c73eff 100644 --- a/src/scheduler/AsyncAction.ts +++ b/src/scheduler/AsyncAction.ts @@ -137,7 +137,6 @@ export class AsyncAction extends Action { const index = actions.indexOf(this); this.work = null; - this.delay = null; this.state = null; this.pending = false; this.scheduler = null; @@ -149,5 +148,7 @@ export class AsyncAction extends Action { if (id != null) { this.id = this.recycleAsyncId(scheduler, id, null); } + + this.delay = null; } }