strip comments

pull/7146/head
GHOSt 5 years ago
parent a4e4027f79
commit a2f8ca856c

@ -63,7 +63,7 @@ export default class EachBlock extends AbstractBlock {
([this.const_tags, this.children] = get_const_tags(info.children, component, this, this));
if (this.has_animation) {
this.children = this.children.filter(child => !isEmptyNode(child));
this.children = this.children.filter(child => !(child.type == 'Comment' || isEmptyNode(child)));
if (this.children.length !== 1) {
const child = this.children.find(child => !!(child as Element).animation);

Loading…
Cancel
Save