From a493b57518cc0a05e37daa65b9dfe9d591fa536d Mon Sep 17 00:00:00 2001 From: hontas Date: Sat, 7 Mar 2020 07:32:01 +0100 Subject: [PATCH] only call onDestroy callbacks --- src/runtime/internal/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index 0078b78c04..7be9f4a065 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -185,7 +185,7 @@ if (typeof HTMLElement === 'function') { } disconnectedCallback() { - this.$destroy(); + run_all(this.$$.on_destroy); } $destroy() {