From 13def49a467655ef4def5ecff98bf009220400cc Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 24 Nov 2018 16:01:06 -0500 Subject: [PATCH] ondestroy before destroy --- src/internal/Component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/Component.js b/src/internal/Component.js index d9ec8fe29b..0cbd4d3226 100644 --- a/src/internal/Component.js +++ b/src/internal/Component.js @@ -75,8 +75,8 @@ export class $$Component { $$destroy(detach) { if (this.$$) { - this.$$fragment.d(detach); run_all(this.$$onDestroy); + this.$$fragment.d(detach); // TODO null out other refs, including this.$$ (but need to // preserve final state?)