diff --git a/src/compile/render-dom/wrappers/InlineComponent/index.ts b/src/compile/render-dom/wrappers/InlineComponent/index.ts index c5df9d9b2f..cbed70b03c 100644 --- a/src/compile/render-dom/wrappers/InlineComponent/index.ts +++ b/src/compile/render-dom/wrappers/InlineComponent/index.ts @@ -83,9 +83,7 @@ export default class InlineComponentWrapper extends Wrapper { const name = this.var; - const componentInitProperties = [ - `root: #component.$$root` - ]; + const componentInitProperties = []; if (this.fragment) { const slots = Array.from(this._slots).map(name => `${quoteNameIfNecessary(name)}: @createFragment()`); diff --git a/src/internal/SvelteComponent.js b/src/internal/SvelteComponent.js index d0cc97789e..5bd57d3c86 100644 --- a/src/internal/SvelteComponent.js +++ b/src/internal/SvelteComponent.js @@ -10,9 +10,6 @@ export class SvelteComponent { this.$$onupdate = []; this.$$ondestroy = []; - // TODO can we get rid of references to $$root and put - // the relevant code in the scheduler instead? - this.$$root = options.root || this; this.$$callbacks = blankObject(); this.$$slotted = options.slots;