only detach each anchors if necessary

pull/31/head
Rich-Harris 8 years ago
parent 78667bc920
commit 2fd833c09e

@ -52,7 +52,7 @@ export default {
${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 );

Loading…
Cancel
Save