mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
use builder instead of local.mount
This commit is contained in:
parent
7c00ea47bc
commit
2d35f937a9
@ -85,7 +85,7 @@ export default {
|
||||
` );
|
||||
|
||||
if ( isToplevel ) {
|
||||
local.mount.unshift( `${name}._mount( target, anchor );` );
|
||||
generator.current.builders.mount.addLine( `${name}._mount( target, anchor );` );
|
||||
}
|
||||
|
||||
if ( local.dynamicAttributes.length ) {
|
||||
@ -114,7 +114,6 @@ export default {
|
||||
|
||||
generator.current.builders.init.addBlock( local.init.join( '\n' ) );
|
||||
if ( local.update.length ) generator.current.builders.update.addBlock( local.update.join( '\n' ) );
|
||||
if ( local.mount.length ) generator.current.builders.mount.addBlock( local.mount.join( '\n' ) );
|
||||
|
||||
generator.push({
|
||||
namespace: local.namespace,
|
||||
|
@ -81,7 +81,6 @@ export default {
|
||||
|
||||
generator.current.builders.init.addBlock( local.init.join( '\n' ) );
|
||||
if ( local.update.length ) generator.current.builders.update.addBlock( local.update.join( '\n' ) );
|
||||
if ( local.mount.length ) generator.current.builders.mount.addBlock( local.mount.join( '\n' ) );
|
||||
|
||||
generator.createMountStatement( name );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user