ondestroy before destroy

pull/1864/head
Rich Harris 7 years ago
parent abc39eed20
commit 13def49a46

@ -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?)

Loading…
Cancel
Save