0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00

only detach each anchors if necessary

This commit is contained in:
Rich-Harris 2016-11-26 12:49:34 -05:00
parent 78667bc920
commit 2fd833c09e

View File

@ -52,7 +52,7 @@ export default {
${name}_iterations[i].teardown( detach ); ${name}_iterations[i].teardown( detach );
} }
${name}_anchor.parentNode.removeChild( ${name}_anchor ); if ( detach ) ${name}_anchor.parentNode.removeChild( ${name}_anchor );
` ); ` );
const indexNames = Object.assign( {}, generator.current.indexNames ); const indexNames = Object.assign( {}, generator.current.indexNames );