indent init statement

pull/31/head
Rich-Harris 8 years ago
parent ad79ce6ec5
commit b233bbf404

@ -292,7 +292,7 @@ export default function generate ( parsed, source, options ) {
setStatements.push( `while ( this.__bindings.length ) this.__bindings.pop()();` ); setStatements.push( `while ( this.__bindings.length ) this.__bindings.pop()();` );
} }
initStatements.push( ` initStatements.push( deindent`
var mainFragment = renderMainFragment( this, options.target ); var mainFragment = renderMainFragment( this, options.target );
this.set( ${templateProperties.data ? `Object.assign( template.data(), options.data )` : `options.data || {}`} ); this.set( ${templateProperties.data ? `Object.assign( template.data(), options.data )` : `options.data || {}`} );
` ); ` );

Loading…
Cancel
Save