From c4937d271ff9cf15c8d52b91fe4ddcc1ea3576f8 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 12 May 2018 21:55:07 -0400 Subject: [PATCH] fix skipped intros --- src/compile/dom/index.ts | 4 ++-- src/compile/nodes/Component.ts | 8 ++++---- src/compile/nodes/Element.ts | 5 +++-- src/shared/index.js | 4 ++-- test/cli/samples/basic/expected/Main.js | 6 +++--- test/cli/samples/custom-element/expected/Main.js | 6 +++--- test/cli/samples/dev/expected/Main.js | 6 +++--- test/cli/samples/dir-sourcemap/expected/Main.js | 8 ++++---- test/cli/samples/dir-sourcemap/expected/Widget.js | 6 +++--- test/cli/samples/dir-subdir/expected/Main.js | 8 ++++---- test/cli/samples/dir-subdir/expected/widget/Widget.js | 6 +++--- test/cli/samples/dir/expected/Main.js | 8 ++++---- test/cli/samples/dir/expected/Widget.js | 6 +++--- test/cli/samples/globals/expected/Main.js | 6 +++--- test/cli/samples/sourcemap-inline/expected/Main.js | 6 +++--- test/cli/samples/sourcemap/expected/Main.js | 6 +++--- test/cli/samples/store/expected/Main.js | 6 +++--- test/js/samples/action/expected-bundle.js | 6 +++--- test/js/samples/action/expected.js | 2 +- test/js/samples/bind-width-height/expected-bundle.js | 6 +++--- test/js/samples/bind-width-height/expected.js | 2 +- .../collapses-text-around-comments/expected-bundle.js | 6 +++--- .../samples/collapses-text-around-comments/expected.js | 2 +- .../samples/component-static-array/expected-bundle.js | 8 ++++---- test/js/samples/component-static-array/expected.js | 4 ++-- .../component-static-immutable/expected-bundle.js | 8 ++++---- test/js/samples/component-static-immutable/expected.js | 4 ++-- .../component-static-immutable2/expected-bundle.js | 8 ++++---- .../js/samples/component-static-immutable2/expected.js | 4 ++-- test/js/samples/component-static/expected-bundle.js | 8 ++++---- test/js/samples/component-static/expected.js | 4 ++-- .../samples/computed-collapsed-if/expected-bundle.js | 6 +++--- test/js/samples/computed-collapsed-if/expected.js | 2 +- test/js/samples/css-media-query/expected-bundle.js | 6 +++--- test/js/samples/css-media-query/expected.js | 2 +- .../css-shadow-dom-keyframes/expected-bundle.js | 6 +++--- test/js/samples/css-shadow-dom-keyframes/expected.js | 2 +- test/js/samples/deconflict-builtins/expected-bundle.js | 6 +++--- test/js/samples/deconflict-builtins/expected.js | 2 +- test/js/samples/deconflict-globals/expected-bundle.js | 6 +++--- test/js/samples/deconflict-globals/expected.js | 2 +- .../expected-bundle.js | 6 +++--- .../dev-warning-missing-data-computed/expected.js | 2 +- test/js/samples/do-use-dataset/expected-bundle.js | 6 +++--- test/js/samples/do-use-dataset/expected.js | 2 +- .../dont-use-dataset-in-legacy/expected-bundle.js | 6 +++--- test/js/samples/dont-use-dataset-in-legacy/expected.js | 2 +- .../samples/dont-use-dataset-in-svg/expected-bundle.js | 6 +++--- test/js/samples/dont-use-dataset-in-svg/expected.js | 2 +- .../each-block-changed-check/expected-bundle.js | 6 +++--- test/js/samples/each-block-changed-check/expected.js | 2 +- .../samples/event-handlers-custom/expected-bundle.js | 6 +++--- test/js/samples/event-handlers-custom/expected.js | 2 +- test/js/samples/head-no-whitespace/expected-bundle.js | 6 +++--- test/js/samples/head-no-whitespace/expected.js | 2 +- test/js/samples/if-block-no-update/expected-bundle.js | 6 +++--- test/js/samples/if-block-no-update/expected.js | 2 +- test/js/samples/if-block-simple/expected-bundle.js | 6 +++--- test/js/samples/if-block-simple/expected.js | 2 +- .../inline-style-optimized-multiple/expected-bundle.js | 6 +++--- .../inline-style-optimized-multiple/expected.js | 2 +- .../inline-style-optimized-url/expected-bundle.js | 6 +++--- test/js/samples/inline-style-optimized-url/expected.js | 2 +- .../samples/inline-style-optimized/expected-bundle.js | 6 +++--- test/js/samples/inline-style-optimized/expected.js | 2 +- .../inline-style-unoptimized/expected-bundle.js | 6 +++--- test/js/samples/inline-style-unoptimized/expected.js | 2 +- test/js/samples/input-range/expected-bundle.js | 6 +++--- test/js/samples/input-range/expected.js | 2 +- .../input-without-blowback-guard/expected-bundle.js | 6 +++--- .../samples/input-without-blowback-guard/expected.js | 2 +- test/js/samples/legacy-input-type/expected-bundle.js | 6 +++--- test/js/samples/legacy-input-type/expected.js | 2 +- test/js/samples/media-bindings/expected-bundle.js | 6 +++--- test/js/samples/media-bindings/expected.js | 2 +- .../samples/non-imported-component/expected-bundle.js | 10 +++++----- test/js/samples/non-imported-component/expected.js | 6 +++--- test/js/samples/setup-method/expected-bundle.js | 6 +++--- test/js/samples/setup-method/expected.js | 2 +- test/js/samples/svg-title/expected-bundle.js | 6 +++--- test/js/samples/svg-title/expected.js | 2 +- test/js/samples/title/expected-bundle.js | 6 +++--- test/js/samples/title/expected.js | 2 +- .../samples/use-elements-as-anchors/expected-bundle.js | 6 +++--- test/js/samples/use-elements-as-anchors/expected.js | 2 +- .../samples/window-binding-scroll/expected-bundle.js | 6 +++--- test/js/samples/window-binding-scroll/expected.js | 2 +- 87 files changed, 205 insertions(+), 204 deletions(-) diff --git a/src/compile/dom/index.ts b/src/compile/dom/index.ts index 4a70ed06ca..dc47f76392 100644 --- a/src/compile/dom/index.ts +++ b/src/compile/dom/index.ts @@ -228,7 +228,7 @@ export default function dom( this._fragment.c(); this._fragment.${block.hasIntroMethod ? 'i' : 'm'}(this.shadowRoot, null); - if (options.target) this._mount(options.target, options.anchor, ${options.skipIntroByDefault ? `options.intro` : 'true'}); + if (options.target) this._mount(options.target, options.anchor); ` : deindent` if (options.target) { ${compiler.options.hydratable @@ -241,7 +241,7 @@ export default function dom( ${options.dev && `if (options.hydrate) throw new Error("options.hydrate only works if the component was compiled with the \`hydratable: true\` option");`} this._fragment.c(); `} - this._mount(options.target, options.anchor, ${options.skipIntroByDefault ? `options.intro` : 'true'}); + this._mount(options.target, options.anchor); ${(compiler.hasComponents || target.hasComplexBindings || hasInitHooks || target.hasIntroTransitions) && deindent` ${compiler.hasComponents && `this._lock = true;`} diff --git a/src/compile/nodes/Component.ts b/src/compile/nodes/Component.ts index 6020825f4a..f7acea4066 100644 --- a/src/compile/nodes/Component.ts +++ b/src/compile/nodes/Component.ts @@ -387,7 +387,7 @@ export default class Component extends Node { block.builders.mount.addBlock(deindent` if (${name}) { - ${name}._mount(${parentNode || '#target'}, ${parentNode ? 'null' : 'anchor'}, ${compiler.options.skipIntroByDefault ? '#component._intro' : 'true'}); + ${name}._mount(${parentNode || '#target'}, ${parentNode ? 'null' : 'anchor'}); ${this.ref && `#component.refs.${this.ref} = ${name};`} } `); @@ -409,7 +409,7 @@ export default class Component extends Node { ${name}._fragment.c(); ${this.children.map(child => child.remount(name))} - ${name}._mount(${updateMountNode}, ${anchor}, true); + ${name}._mount(${updateMountNode}, ${anchor}); ${this.handlers.map(handler => deindent` ${name}.on("${handler.name}", ${handler.var}); @@ -468,7 +468,7 @@ export default class Component extends Node { } block.builders.mount.addLine( - `${name}._mount(${parentNode || '#target'}, ${parentNode ? 'null' : 'anchor'}, ${compiler.options.skipIntroByDefault ? '#component._intro' : 'true'});` + `${name}._mount(${parentNode || '#target'}, ${parentNode ? 'null' : 'anchor'});` ); if (updates.length) { @@ -493,7 +493,7 @@ export default class Component extends Node { } remount(name: string) { - return `${this.var}._mount(${name}._slotted.default, null, false);`; + return `${this.var}._mount(${name}._slotted.default, null);`; } ssr() { diff --git a/src/compile/nodes/Element.ts b/src/compile/nodes/Element.ts index a2f12858c7..18dfb374da 100644 --- a/src/compile/nodes/Element.ts +++ b/src/compile/nodes/Element.ts @@ -699,7 +699,7 @@ export default class Element extends Node { const fn = `%transitions-${intro.name}`; - block.builders.intro.addBlock(deindent` + block.builders.intro.addConditional(`#component._intro`, deindent` if (${name}) ${name}.invalidate(); #component.root._aftercreate.push(() => { @@ -709,6 +709,7 @@ export default class Element extends Node { `); block.builders.outro.addBlock(deindent` + if (!${name}) ${name} = @wrapTransition(#component, ${this.var}, ${fn}, ${snippet}, false); ${name}.run(0, () => { #outrocallback(); ${name} = null; @@ -733,7 +734,7 @@ export default class Element extends Node { `); } - block.builders.intro.addBlock(deindent` + block.builders.intro.addConditional(`#component._intro`, deindent` #component.root._aftercreate.push(() => { ${introName} = @wrapTransition(#component, ${this.var}, ${fn}, ${snippet}, true); ${introName}.run(1); diff --git a/src/shared/index.js b/src/shared/index.js index e1d7fda5e9..cf82282ad8 100644 --- a/src/shared/index.js +++ b/src/shared/index.js @@ -128,8 +128,8 @@ export function callAll(fns) { while (fns && fns.length) fns.shift()(); } -export function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +export function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } export var PENDING = {}; diff --git a/test/cli/samples/basic/expected/Main.js b/test/cli/samples/basic/expected/Main.js index f7aa8f698a..7407ee4be3 100644 --- a/test/cli/samples/basic/expected/Main.js +++ b/test/cli/samples/basic/expected/Main.js @@ -32,7 +32,7 @@ function Main(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -150,8 +150,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/custom-element/expected/Main.js b/test/cli/samples/custom-element/expected/Main.js index bf393c995c..4fef083d78 100644 --- a/test/cli/samples/custom-element/expected/Main.js +++ b/test/cli/samples/custom-element/expected/Main.js @@ -38,7 +38,7 @@ class Main extends HTMLElement { this._fragment.c(); this._fragment.m(this.shadowRoot, null); - if (options.target) this._mount(options.target, options.anchor, true); + if (options.target) this._mount(options.target, options.anchor); } static get observedAttributes() { @@ -171,8 +171,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/dev/expected/Main.js b/test/cli/samples/dev/expected/Main.js index 477b3f1635..9cfeb5ba58 100644 --- a/test/cli/samples/dev/expected/Main.js +++ b/test/cli/samples/dev/expected/Main.js @@ -35,7 +35,7 @@ function Main(options) { if (options.target) { if (options.hydrate) throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option"); this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -154,8 +154,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/dir-sourcemap/expected/Main.js b/test/cli/samples/dir-sourcemap/expected/Main.js index 9933db03f4..2169df3ed8 100644 --- a/test/cli/samples/dir-sourcemap/expected/Main.js +++ b/test/cli/samples/dir-sourcemap/expected/Main.js @@ -15,7 +15,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - widget._mount(target, anchor, true); + widget._mount(target, anchor); }, p: noop, @@ -41,7 +41,7 @@ function Main(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); @@ -157,8 +157,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/dir-sourcemap/expected/Widget.js b/test/cli/samples/dir-sourcemap/expected/Widget.js index 5c57d9dae6..8c63eca928 100644 --- a/test/cli/samples/dir-sourcemap/expected/Widget.js +++ b/test/cli/samples/dir-sourcemap/expected/Widget.js @@ -32,7 +32,7 @@ function Widget(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -150,8 +150,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/dir-subdir/expected/Main.js b/test/cli/samples/dir-subdir/expected/Main.js index 23591bd0a0..7a5e0e65f4 100644 --- a/test/cli/samples/dir-subdir/expected/Main.js +++ b/test/cli/samples/dir-subdir/expected/Main.js @@ -15,7 +15,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - widget._mount(target, anchor, true); + widget._mount(target, anchor); }, p: noop, @@ -41,7 +41,7 @@ function Main(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); @@ -157,8 +157,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/dir-subdir/expected/widget/Widget.js b/test/cli/samples/dir-subdir/expected/widget/Widget.js index e33859eccd..e4bf9ce919 100644 --- a/test/cli/samples/dir-subdir/expected/widget/Widget.js +++ b/test/cli/samples/dir-subdir/expected/widget/Widget.js @@ -32,7 +32,7 @@ function Widget(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -150,8 +150,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/dir/expected/Main.js b/test/cli/samples/dir/expected/Main.js index 6338328094..0ab0b9a372 100644 --- a/test/cli/samples/dir/expected/Main.js +++ b/test/cli/samples/dir/expected/Main.js @@ -15,7 +15,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - widget._mount(target, anchor, true); + widget._mount(target, anchor); }, p: noop, @@ -41,7 +41,7 @@ function Main(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); @@ -157,8 +157,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/dir/expected/Widget.js b/test/cli/samples/dir/expected/Widget.js index 66eeb2a895..e9ca0c6056 100644 --- a/test/cli/samples/dir/expected/Widget.js +++ b/test/cli/samples/dir/expected/Widget.js @@ -32,7 +32,7 @@ function Widget(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -150,8 +150,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/globals/expected/Main.js b/test/cli/samples/globals/expected/Main.js index 46f3fa2594..e317e7e689 100644 --- a/test/cli/samples/globals/expected/Main.js +++ b/test/cli/samples/globals/expected/Main.js @@ -47,7 +47,7 @@ var Main = (function(answer) { "use strict"; if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -171,8 +171,8 @@ var Main = (function(answer) { "use strict"; } } - function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/sourcemap-inline/expected/Main.js b/test/cli/samples/sourcemap-inline/expected/Main.js index 0a7463533a..b52eed5b1e 100644 --- a/test/cli/samples/sourcemap-inline/expected/Main.js +++ b/test/cli/samples/sourcemap-inline/expected/Main.js @@ -32,7 +32,7 @@ function Main(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -150,8 +150,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/sourcemap/expected/Main.js b/test/cli/samples/sourcemap/expected/Main.js index 1c40d1fa58..9e025d21f9 100644 --- a/test/cli/samples/sourcemap/expected/Main.js +++ b/test/cli/samples/sourcemap/expected/Main.js @@ -32,7 +32,7 @@ function Main(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -150,8 +150,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/cli/samples/store/expected/Main.js b/test/cli/samples/store/expected/Main.js index a16131512f..00d4ead864 100644 --- a/test/cli/samples/store/expected/Main.js +++ b/test/cli/samples/store/expected/Main.js @@ -42,7 +42,7 @@ function Main(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } @@ -170,8 +170,8 @@ function _set(newState) { } } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } function _differs(a, b) { diff --git a/test/js/samples/action/expected-bundle.js b/test/js/samples/action/expected-bundle.js index d90836bd06..fe61c32b09 100644 --- a/test/js/samples/action/expected-bundle.js +++ b/test/js/samples/action/expected-bundle.js @@ -111,8 +111,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -180,7 +180,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/action/expected.js b/test/js/samples/action/expected.js index 8ae971178c..3fd7e9eec8 100644 --- a/test/js/samples/action/expected.js +++ b/test/js/samples/action/expected.js @@ -53,7 +53,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/bind-width-height/expected-bundle.js b/test/js/samples/bind-width-height/expected-bundle.js index 037a3e351d..e66cc47aaf 100644 --- a/test/js/samples/bind-width-height/expected-bundle.js +++ b/test/js/samples/bind-width-height/expected-bundle.js @@ -143,8 +143,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -206,7 +206,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); callAll(this._beforecreate); } diff --git a/test/js/samples/bind-width-height/expected.js b/test/js/samples/bind-width-height/expected.js index 45eea94620..ea9542acf2 100644 --- a/test/js/samples/bind-width-height/expected.js +++ b/test/js/samples/bind-width-height/expected.js @@ -46,7 +46,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); callAll(this._beforecreate); } diff --git a/test/js/samples/collapses-text-around-comments/expected-bundle.js b/test/js/samples/collapses-text-around-comments/expected-bundle.js index 2abdb35ad3..49c9c75813 100644 --- a/test/js/samples/collapses-text-around-comments/expected-bundle.js +++ b/test/js/samples/collapses-text-around-comments/expected-bundle.js @@ -119,8 +119,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -187,7 +187,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/collapses-text-around-comments/expected.js b/test/js/samples/collapses-text-around-comments/expected.js index 77b9ecda68..0c94fc8356 100644 --- a/test/js/samples/collapses-text-around-comments/expected.js +++ b/test/js/samples/collapses-text-around-comments/expected.js @@ -52,7 +52,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/component-static-array/expected-bundle.js b/test/js/samples/component-static-array/expected-bundle.js index 47534baf71..1fd894e093 100644 --- a/test/js/samples/component-static-array/expected-bundle.js +++ b/test/js/samples/component-static-array/expected-bundle.js @@ -99,8 +99,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -133,7 +133,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - nested._mount(target, anchor, true); + nested._mount(target, anchor); }, p: noop, @@ -159,7 +159,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/component-static-array/expected.js b/test/js/samples/component-static-array/expected.js index dd94dfbe1b..c1dcfea4a7 100644 --- a/test/js/samples/component-static-array/expected.js +++ b/test/js/samples/component-static-array/expected.js @@ -17,7 +17,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - nested._mount(target, anchor, true); + nested._mount(target, anchor); }, p: noop, @@ -43,7 +43,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/component-static-immutable/expected-bundle.js b/test/js/samples/component-static-immutable/expected-bundle.js index 55f31adaa3..dc6d94a1f2 100644 --- a/test/js/samples/component-static-immutable/expected-bundle.js +++ b/test/js/samples/component-static-immutable/expected-bundle.js @@ -103,8 +103,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -137,7 +137,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - nested._mount(target, anchor, true); + nested._mount(target, anchor); }, p: noop, @@ -163,7 +163,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/component-static-immutable/expected.js b/test/js/samples/component-static-immutable/expected.js index 01c61db843..41fe5a349b 100644 --- a/test/js/samples/component-static-immutable/expected.js +++ b/test/js/samples/component-static-immutable/expected.js @@ -17,7 +17,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - nested._mount(target, anchor, true); + nested._mount(target, anchor); }, p: noop, @@ -43,7 +43,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/component-static-immutable2/expected-bundle.js b/test/js/samples/component-static-immutable2/expected-bundle.js index 55f31adaa3..dc6d94a1f2 100644 --- a/test/js/samples/component-static-immutable2/expected-bundle.js +++ b/test/js/samples/component-static-immutable2/expected-bundle.js @@ -103,8 +103,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -137,7 +137,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - nested._mount(target, anchor, true); + nested._mount(target, anchor); }, p: noop, @@ -163,7 +163,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/component-static-immutable2/expected.js b/test/js/samples/component-static-immutable2/expected.js index 01c61db843..41fe5a349b 100644 --- a/test/js/samples/component-static-immutable2/expected.js +++ b/test/js/samples/component-static-immutable2/expected.js @@ -17,7 +17,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - nested._mount(target, anchor, true); + nested._mount(target, anchor); }, p: noop, @@ -43,7 +43,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/component-static/expected-bundle.js b/test/js/samples/component-static/expected-bundle.js index ed27d44137..21c70ae9a7 100644 --- a/test/js/samples/component-static/expected-bundle.js +++ b/test/js/samples/component-static/expected-bundle.js @@ -99,8 +99,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -133,7 +133,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - nested._mount(target, anchor, true); + nested._mount(target, anchor); }, p: noop, @@ -159,7 +159,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/component-static/expected.js b/test/js/samples/component-static/expected.js index c4308b66e3..2318521cf4 100644 --- a/test/js/samples/component-static/expected.js +++ b/test/js/samples/component-static/expected.js @@ -17,7 +17,7 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - nested._mount(target, anchor, true); + nested._mount(target, anchor); }, p: noop, @@ -43,7 +43,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/computed-collapsed-if/expected-bundle.js b/test/js/samples/computed-collapsed-if/expected-bundle.js index f389a4a991..0e967c7a67 100644 --- a/test/js/samples/computed-collapsed-if/expected-bundle.js +++ b/test/js/samples/computed-collapsed-if/expected-bundle.js @@ -99,8 +99,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -148,7 +148,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/computed-collapsed-if/expected.js b/test/js/samples/computed-collapsed-if/expected.js index 208b2503f2..574d8dffa2 100644 --- a/test/js/samples/computed-collapsed-if/expected.js +++ b/test/js/samples/computed-collapsed-if/expected.js @@ -32,7 +32,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/css-media-query/expected-bundle.js b/test/js/samples/css-media-query/expected-bundle.js index deaed19d8f..b481784118 100644 --- a/test/js/samples/css-media-query/expected-bundle.js +++ b/test/js/samples/css-media-query/expected-bundle.js @@ -115,8 +115,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -174,7 +174,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/css-media-query/expected.js b/test/js/samples/css-media-query/expected.js index 8addd3e494..748f8ceec9 100644 --- a/test/js/samples/css-media-query/expected.js +++ b/test/js/samples/css-media-query/expected.js @@ -42,7 +42,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/css-shadow-dom-keyframes/expected-bundle.js b/test/js/samples/css-shadow-dom-keyframes/expected-bundle.js index 9c7e0c14b1..c34d69215b 100644 --- a/test/js/samples/css-shadow-dom-keyframes/expected-bundle.js +++ b/test/js/samples/css-shadow-dom-keyframes/expected-bundle.js @@ -111,8 +111,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -168,7 +168,7 @@ class SvelteComponent extends HTMLElement { this._fragment.c(); this._fragment.m(this.shadowRoot, null); - if (options.target) this._mount(options.target, options.anchor, true); + if (options.target) this._mount(options.target, options.anchor); } static get observedAttributes() { diff --git a/test/js/samples/css-shadow-dom-keyframes/expected.js b/test/js/samples/css-shadow-dom-keyframes/expected.js index 1832bac488..783a296170 100644 --- a/test/js/samples/css-shadow-dom-keyframes/expected.js +++ b/test/js/samples/css-shadow-dom-keyframes/expected.js @@ -40,7 +40,7 @@ class SvelteComponent extends HTMLElement { this._fragment.c(); this._fragment.m(this.shadowRoot, null); - if (options.target) this._mount(options.target, options.anchor, true); + if (options.target) this._mount(options.target, options.anchor); } static get observedAttributes() { diff --git a/test/js/samples/deconflict-builtins/expected-bundle.js b/test/js/samples/deconflict-builtins/expected-bundle.js index 6ea32ad693..976c71face 100644 --- a/test/js/samples/deconflict-builtins/expected-bundle.js +++ b/test/js/samples/deconflict-builtins/expected-bundle.js @@ -129,8 +129,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -254,7 +254,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/deconflict-builtins/expected.js b/test/js/samples/deconflict-builtins/expected.js index afc357605c..28aed03cca 100644 --- a/test/js/samples/deconflict-builtins/expected.js +++ b/test/js/samples/deconflict-builtins/expected.js @@ -108,7 +108,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/deconflict-globals/expected-bundle.js b/test/js/samples/deconflict-globals/expected-bundle.js index b68330a2f5..524d379e88 100644 --- a/test/js/samples/deconflict-globals/expected-bundle.js +++ b/test/js/samples/deconflict-globals/expected-bundle.js @@ -104,8 +104,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -162,7 +162,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); callAll(this._oncreate); } diff --git a/test/js/samples/deconflict-globals/expected.js b/test/js/samples/deconflict-globals/expected.js index fd110588da..275f189df7 100644 --- a/test/js/samples/deconflict-globals/expected.js +++ b/test/js/samples/deconflict-globals/expected.js @@ -42,7 +42,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); callAll(this._oncreate); } diff --git a/test/js/samples/dev-warning-missing-data-computed/expected-bundle.js b/test/js/samples/dev-warning-missing-data-computed/expected-bundle.js index 70a240dfab..cc3446f88b 100644 --- a/test/js/samples/dev-warning-missing-data-computed/expected-bundle.js +++ b/test/js/samples/dev-warning-missing-data-computed/expected-bundle.js @@ -137,8 +137,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var protoDev = { @@ -209,7 +209,7 @@ function SvelteComponent(options) { if (options.target) { if (options.hydrate) throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option"); this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/dev-warning-missing-data-computed/expected.js b/test/js/samples/dev-warning-missing-data-computed/expected.js index 877cbddebc..b9d70d63ac 100644 --- a/test/js/samples/dev-warning-missing-data-computed/expected.js +++ b/test/js/samples/dev-warning-missing-data-computed/expected.js @@ -55,7 +55,7 @@ function SvelteComponent(options) { if (options.target) { if (options.hydrate) throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option"); this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/do-use-dataset/expected-bundle.js b/test/js/samples/do-use-dataset/expected-bundle.js index 8b160e19ea..7eac008dbe 100644 --- a/test/js/samples/do-use-dataset/expected-bundle.js +++ b/test/js/samples/do-use-dataset/expected-bundle.js @@ -115,8 +115,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -176,7 +176,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/do-use-dataset/expected.js b/test/js/samples/do-use-dataset/expected.js index 72b2d63180..1094e5ef01 100644 --- a/test/js/samples/do-use-dataset/expected.js +++ b/test/js/samples/do-use-dataset/expected.js @@ -44,7 +44,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/dont-use-dataset-in-legacy/expected-bundle.js b/test/js/samples/dont-use-dataset-in-legacy/expected-bundle.js index 0560f2095f..93fbd587cf 100644 --- a/test/js/samples/dont-use-dataset-in-legacy/expected-bundle.js +++ b/test/js/samples/dont-use-dataset-in-legacy/expected-bundle.js @@ -119,8 +119,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -180,7 +180,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/dont-use-dataset-in-legacy/expected.js b/test/js/samples/dont-use-dataset-in-legacy/expected.js index 8dda681218..b8ad61d4c7 100644 --- a/test/js/samples/dont-use-dataset-in-legacy/expected.js +++ b/test/js/samples/dont-use-dataset-in-legacy/expected.js @@ -44,7 +44,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/dont-use-dataset-in-svg/expected-bundle.js b/test/js/samples/dont-use-dataset-in-svg/expected-bundle.js index 76cfc5d9fb..349eff3f4d 100644 --- a/test/js/samples/dont-use-dataset-in-svg/expected-bundle.js +++ b/test/js/samples/dont-use-dataset-in-svg/expected-bundle.js @@ -119,8 +119,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -178,7 +178,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/dont-use-dataset-in-svg/expected.js b/test/js/samples/dont-use-dataset-in-svg/expected.js index a65ef20033..1d78f5ee2f 100644 --- a/test/js/samples/dont-use-dataset-in-svg/expected.js +++ b/test/js/samples/dont-use-dataset-in-svg/expected.js @@ -42,7 +42,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/each-block-changed-check/expected-bundle.js b/test/js/samples/each-block-changed-check/expected-bundle.js index f1327b51ca..b06f8662f9 100644 --- a/test/js/samples/each-block-changed-check/expected-bundle.js +++ b/test/js/samples/each-block-changed-check/expected-bundle.js @@ -131,8 +131,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -295,7 +295,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/each-block-changed-check/expected.js b/test/js/samples/each-block-changed-check/expected.js index b58e5bfc17..7b9a53a76f 100644 --- a/test/js/samples/each-block-changed-check/expected.js +++ b/test/js/samples/each-block-changed-check/expected.js @@ -147,7 +147,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/event-handlers-custom/expected-bundle.js b/test/js/samples/event-handlers-custom/expected-bundle.js index 985c7f8305..5e04f88939 100644 --- a/test/js/samples/event-handlers-custom/expected-bundle.js +++ b/test/js/samples/event-handlers-custom/expected-bundle.js @@ -111,8 +111,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -178,7 +178,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/event-handlers-custom/expected.js b/test/js/samples/event-handlers-custom/expected.js index 5d0e2746a3..c72362620b 100644 --- a/test/js/samples/event-handlers-custom/expected.js +++ b/test/js/samples/event-handlers-custom/expected.js @@ -51,7 +51,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/head-no-whitespace/expected-bundle.js b/test/js/samples/head-no-whitespace/expected-bundle.js index 4f513c2e10..f7bbdcc431 100644 --- a/test/js/samples/head-no-whitespace/expected-bundle.js +++ b/test/js/samples/head-no-whitespace/expected-bundle.js @@ -111,8 +111,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -165,7 +165,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/head-no-whitespace/expected.js b/test/js/samples/head-no-whitespace/expected.js index f01f233fe6..1c12cdc894 100644 --- a/test/js/samples/head-no-whitespace/expected.js +++ b/test/js/samples/head-no-whitespace/expected.js @@ -37,7 +37,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/if-block-no-update/expected-bundle.js b/test/js/samples/if-block-no-update/expected-bundle.js index 747a0e3e31..358177436b 100644 --- a/test/js/samples/if-block-no-update/expected-bundle.js +++ b/test/js/samples/if-block-no-update/expected-bundle.js @@ -115,8 +115,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -226,7 +226,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/if-block-no-update/expected.js b/test/js/samples/if-block-no-update/expected.js index 78f9e45fd8..65d4a4a900 100644 --- a/test/js/samples/if-block-no-update/expected.js +++ b/test/js/samples/if-block-no-update/expected.js @@ -94,7 +94,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/if-block-simple/expected-bundle.js b/test/js/samples/if-block-simple/expected-bundle.js index c59f7155d7..6028d9dfc1 100644 --- a/test/js/samples/if-block-simple/expected-bundle.js +++ b/test/js/samples/if-block-simple/expected-bundle.js @@ -115,8 +115,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -202,7 +202,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/if-block-simple/expected.js b/test/js/samples/if-block-simple/expected.js index 02b6720758..f09325bc97 100644 --- a/test/js/samples/if-block-simple/expected.js +++ b/test/js/samples/if-block-simple/expected.js @@ -70,7 +70,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/inline-style-optimized-multiple/expected-bundle.js b/test/js/samples/inline-style-optimized-multiple/expected-bundle.js index 04632dde4b..be92ba9730 100644 --- a/test/js/samples/inline-style-optimized-multiple/expected-bundle.js +++ b/test/js/samples/inline-style-optimized-multiple/expected-bundle.js @@ -115,8 +115,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -174,7 +174,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/inline-style-optimized-multiple/expected.js b/test/js/samples/inline-style-optimized-multiple/expected.js index dce0d97032..ac3408963e 100644 --- a/test/js/samples/inline-style-optimized-multiple/expected.js +++ b/test/js/samples/inline-style-optimized-multiple/expected.js @@ -42,7 +42,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/inline-style-optimized-url/expected-bundle.js b/test/js/samples/inline-style-optimized-url/expected-bundle.js index b19fecc8a0..439a9b8740 100644 --- a/test/js/samples/inline-style-optimized-url/expected-bundle.js +++ b/test/js/samples/inline-style-optimized-url/expected-bundle.js @@ -115,8 +115,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -169,7 +169,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/inline-style-optimized-url/expected.js b/test/js/samples/inline-style-optimized-url/expected.js index 3a1eaaa6fb..bfe4d19d54 100644 --- a/test/js/samples/inline-style-optimized-url/expected.js +++ b/test/js/samples/inline-style-optimized-url/expected.js @@ -37,7 +37,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/inline-style-optimized/expected-bundle.js b/test/js/samples/inline-style-optimized/expected-bundle.js index 5656d88734..a5a474d08f 100644 --- a/test/js/samples/inline-style-optimized/expected-bundle.js +++ b/test/js/samples/inline-style-optimized/expected-bundle.js @@ -115,8 +115,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -169,7 +169,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/inline-style-optimized/expected.js b/test/js/samples/inline-style-optimized/expected.js index b6d4d82530..0ee8d8abd6 100644 --- a/test/js/samples/inline-style-optimized/expected.js +++ b/test/js/samples/inline-style-optimized/expected.js @@ -37,7 +37,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/inline-style-unoptimized/expected-bundle.js b/test/js/samples/inline-style-unoptimized/expected-bundle.js index 45a7ea3696..f9611d370a 100644 --- a/test/js/samples/inline-style-unoptimized/expected-bundle.js +++ b/test/js/samples/inline-style-unoptimized/expected-bundle.js @@ -115,8 +115,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -180,7 +180,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/inline-style-unoptimized/expected.js b/test/js/samples/inline-style-unoptimized/expected.js index fba1c75c2f..27fdf60c57 100644 --- a/test/js/samples/inline-style-unoptimized/expected.js +++ b/test/js/samples/inline-style-unoptimized/expected.js @@ -48,7 +48,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/input-range/expected-bundle.js b/test/js/samples/input-range/expected-bundle.js index 56b2574411..61560074dc 100644 --- a/test/js/samples/input-range/expected-bundle.js +++ b/test/js/samples/input-range/expected-bundle.js @@ -127,8 +127,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -190,7 +190,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/input-range/expected.js b/test/js/samples/input-range/expected.js index 00e886aec6..1b3d77fdbf 100644 --- a/test/js/samples/input-range/expected.js +++ b/test/js/samples/input-range/expected.js @@ -46,7 +46,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/input-without-blowback-guard/expected-bundle.js b/test/js/samples/input-without-blowback-guard/expected-bundle.js index ee6c38a0ae..9a0998ed9a 100644 --- a/test/js/samples/input-without-blowback-guard/expected-bundle.js +++ b/test/js/samples/input-without-blowback-guard/expected-bundle.js @@ -123,8 +123,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -184,7 +184,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/input-without-blowback-guard/expected.js b/test/js/samples/input-without-blowback-guard/expected.js index afdc22e5fb..be051e1cfa 100644 --- a/test/js/samples/input-without-blowback-guard/expected.js +++ b/test/js/samples/input-without-blowback-guard/expected.js @@ -44,7 +44,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/legacy-input-type/expected-bundle.js b/test/js/samples/legacy-input-type/expected-bundle.js index eea8f6cb2c..41701a0b41 100644 --- a/test/js/samples/legacy-input-type/expected-bundle.js +++ b/test/js/samples/legacy-input-type/expected-bundle.js @@ -117,8 +117,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -167,7 +167,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/legacy-input-type/expected.js b/test/js/samples/legacy-input-type/expected.js index 238dafdcf4..c1706ab900 100644 --- a/test/js/samples/legacy-input-type/expected.js +++ b/test/js/samples/legacy-input-type/expected.js @@ -33,7 +33,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/media-bindings/expected-bundle.js b/test/js/samples/media-bindings/expected-bundle.js index d85fbc083c..151a26f603 100644 --- a/test/js/samples/media-bindings/expected-bundle.js +++ b/test/js/samples/media-bindings/expected-bundle.js @@ -127,8 +127,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -238,7 +238,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); callAll(this._beforecreate); } diff --git a/test/js/samples/media-bindings/expected.js b/test/js/samples/media-bindings/expected.js index 143d678457..9e4e863b00 100644 --- a/test/js/samples/media-bindings/expected.js +++ b/test/js/samples/media-bindings/expected.js @@ -94,7 +94,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); callAll(this._beforecreate); } diff --git a/test/js/samples/non-imported-component/expected-bundle.js b/test/js/samples/non-imported-component/expected-bundle.js index cd89e51cd7..0cfeadbd9d 100644 --- a/test/js/samples/non-imported-component/expected-bundle.js +++ b/test/js/samples/non-imported-component/expected-bundle.js @@ -113,8 +113,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -152,9 +152,9 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - imported._mount(target, anchor, true); + imported._mount(target, anchor); insertNode(text, target, anchor); - nonimported._mount(target, anchor, true); + nonimported._mount(target, anchor); }, p: noop, @@ -185,7 +185,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/non-imported-component/expected.js b/test/js/samples/non-imported-component/expected.js index c7c19efe2d..e384445105 100644 --- a/test/js/samples/non-imported-component/expected.js +++ b/test/js/samples/non-imported-component/expected.js @@ -23,9 +23,9 @@ function create_main_fragment(component, ctx) { }, m(target, anchor) { - imported._mount(target, anchor, true); + imported._mount(target, anchor); insertNode(text, target, anchor); - nonimported._mount(target, anchor, true); + nonimported._mount(target, anchor); }, p: noop, @@ -56,7 +56,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); this._lock = true; callAll(this._beforecreate); diff --git a/test/js/samples/setup-method/expected-bundle.js b/test/js/samples/setup-method/expected-bundle.js index eef49483af..da8d02f4d6 100644 --- a/test/js/samples/setup-method/expected-bundle.js +++ b/test/js/samples/setup-method/expected-bundle.js @@ -99,8 +99,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -155,7 +155,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/setup-method/expected.js b/test/js/samples/setup-method/expected.js index bcb05faf38..d68f1478aa 100644 --- a/test/js/samples/setup-method/expected.js +++ b/test/js/samples/setup-method/expected.js @@ -39,7 +39,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/svg-title/expected-bundle.js b/test/js/samples/svg-title/expected-bundle.js index b5a8a998cd..948fb03a4d 100644 --- a/test/js/samples/svg-title/expected-bundle.js +++ b/test/js/samples/svg-title/expected-bundle.js @@ -119,8 +119,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -172,7 +172,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/svg-title/expected.js b/test/js/samples/svg-title/expected.js index 2a3cb38e42..fc06591018 100644 --- a/test/js/samples/svg-title/expected.js +++ b/test/js/samples/svg-title/expected.js @@ -36,7 +36,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/title/expected-bundle.js b/test/js/samples/title/expected-bundle.js index 9778eff646..1060deab4c 100644 --- a/test/js/samples/title/expected-bundle.js +++ b/test/js/samples/title/expected-bundle.js @@ -99,8 +99,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -146,7 +146,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/title/expected.js b/test/js/samples/title/expected.js index 961140ab9f..c2bbe4ec1c 100644 --- a/test/js/samples/title/expected.js +++ b/test/js/samples/title/expected.js @@ -30,7 +30,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/use-elements-as-anchors/expected-bundle.js b/test/js/samples/use-elements-as-anchors/expected-bundle.js index fe52babbf3..979a7ff3e7 100644 --- a/test/js/samples/use-elements-as-anchors/expected-bundle.js +++ b/test/js/samples/use-elements-as-anchors/expected-bundle.js @@ -123,8 +123,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -390,7 +390,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/use-elements-as-anchors/expected.js b/test/js/samples/use-elements-as-anchors/expected.js index a9cd7cd6d2..81a97df8ba 100644 --- a/test/js/samples/use-elements-as-anchors/expected.js +++ b/test/js/samples/use-elements-as-anchors/expected.js @@ -250,7 +250,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/window-binding-scroll/expected-bundle.js b/test/js/samples/window-binding-scroll/expected-bundle.js index 9926710016..7fdc38fc63 100644 --- a/test/js/samples/window-binding-scroll/expected-bundle.js +++ b/test/js/samples/window-binding-scroll/expected-bundle.js @@ -119,8 +119,8 @@ function callAll(fns) { while (fns && fns.length) fns.shift()(); } -function _mount(target, anchor, intro) { - this._fragment[intro && this._fragment.i ? 'i' : 'm'](target, anchor || null); +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); } var proto = { @@ -199,7 +199,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } } diff --git a/test/js/samples/window-binding-scroll/expected.js b/test/js/samples/window-binding-scroll/expected.js index 1216ede536..29461610c9 100644 --- a/test/js/samples/window-binding-scroll/expected.js +++ b/test/js/samples/window-binding-scroll/expected.js @@ -63,7 +63,7 @@ function SvelteComponent(options) { if (options.target) { this._fragment.c(); - this._mount(options.target, options.anchor, true); + this._mount(options.target, options.anchor); } }