0
0
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:
Rich-Harris 2016-12-10 15:24:48 -05:00
parent 7c00ea47bc
commit 2d35f937a9
2 changed files with 1 additions and 3 deletions

View File

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

View File

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