Merge pull request #785 from amwmedia/master

add `anchor` as an optional config param for initializing a component
pull/792/head
Rich Harris 7 years ago committed by GitHub
commit d6f186ddec

@ -213,7 +213,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.create();
`}
this._fragment.${block.hasIntroMethod ? 'intro' : 'mount'}( options.target, null );
this._fragment.${block.hasIntroMethod ? 'intro' : 'mount'}( options.target, options.anchor || null );
}
${(generator.hasComponents || generator.hasComplexBindings || templateProperties.oncreate || generator.hasIntroTransitions) && deindent`

@ -237,7 +237,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -73,7 +73,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -184,7 +184,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -44,7 +44,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -219,7 +219,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -59,7 +59,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -331,7 +331,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -158,7 +158,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -228,7 +228,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -68,7 +68,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -270,7 +270,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -106,7 +106,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -246,7 +246,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -82,7 +82,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -204,7 +204,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -46,7 +46,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -226,7 +226,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
if ( !options._root ) {

@ -74,7 +74,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
if ( !options._root ) {

@ -191,7 +191,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
if ( !options._root ) {

@ -51,7 +51,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
if ( !options._root ) {

@ -193,7 +193,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -53,7 +53,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -430,7 +430,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

@ -266,7 +266,7 @@ function SvelteComponent ( options ) {
if ( options.target ) {
this._fragment.create();
this._fragment.mount( options.target, null );
this._fragment.mount( options.target, options.anchor || null );
}
}

Loading…
Cancel
Save