remove root

pull/1864/head
Rich Harris 7 years ago
parent 85dacdbedb
commit a68ccfd744

@ -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()`);

@ -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;

Loading…
Cancel
Save