ondestroy before destroy

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

@ -75,8 +75,8 @@ export class $$Component {
$$destroy(detach) { $$destroy(detach) {
if (this.$$) { if (this.$$) {
this.$$fragment.d(detach);
run_all(this.$$onDestroy); run_all(this.$$onDestroy);
this.$$fragment.d(detach);
// TODO null out other refs, including this.$$ (but need to // TODO null out other refs, including this.$$ (but need to
// preserve final state?) // preserve final state?)

Loading…
Cancel
Save