pull/501/head
Rich-Harris 8 years ago
parent fce3f342fb
commit 872e90474c

@ -57,7 +57,7 @@ export default function visitEachBlock ( generator, block, state, node ) {
}
` );
if ( node.else.hasUpdateMethod ) {
if ( node.else._block.hasUpdateMethod ) {
block.builders.update.addBlock( deindent`
if ( !${each_block_value}.length && ${each_block_else} ) {
${each_block_else}.update( changed, ${params} );

@ -1,6 +1,4 @@
export default {
solo: true,
data: {
animals: [ 'alpaca', 'baboon', 'capybara' ]
},

Loading…
Cancel
Save