From eb72ff4cc26536670f38b841d0a3f6bfa22f9b94 Mon Sep 17 00:00:00 2001 From: JiaLiPassion Date: Tue, 8 Jan 2019 08:49:45 +0800 Subject: [PATCH] fix(core): fix interval will still run after cancelled error (#1156) --- lib/zone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zone.ts b/lib/zone.ts index 74fb76536..7e02452be 100644 --- a/lib/zone.ts +++ b/lib/zone.ts @@ -796,7 +796,7 @@ const Zone: ZoneType = (function(global: any) { // will run in notScheduled(canceled) state, we should not try to // run such kind of task but just return - if (task.state === notScheduled && task.type === eventTask) { + if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) { return; }