fix each-else

pull/7738/head
Rich Harris 8 years ago
parent 7d22acc626
commit 9dd7b79e42

@ -37,6 +37,10 @@ export default class EachBlock extends Node {
this.scope.add(this.context, this.expression.dependencies); this.scope.add(this.context, this.expression.dependencies);
this.children = mapChildren(compiler, this, this.scope, info.children); this.children = mapChildren(compiler, this, this.scope, info.children);
this.else = info.else
? new ElseBlock(compiler, this, this.scope, info.else)
: null;
} }
init( init(

Loading…
Cancel
Save