pull/1173/head
Rich Harris 7 years ago
parent c3a08788e6
commit fcae19b5d8

@ -527,8 +527,8 @@ function mungeBinding(binding: Node, block: Block): Binding {
let prop; let prop;
if (contextual) { if (contextual) {
obj = block.listNames.get(name); obj = `state.${block.listNames.get(name)}`;
prop = block.indexNames.get(name); prop = `state.${block.indexNames.get(name)}`;
} else if (binding.value.type === 'MemberExpression') { } else if (binding.value.type === 'MemberExpression') {
prop = `[✂${binding.value.property.start}-${binding.value.property.end}✂]`; prop = `[✂${binding.value.property.start}-${binding.value.property.end}✂]`;
if (!binding.value.computed) prop = `'${prop}'`; if (!binding.value.computed) prop = `'${prop}'`;

Loading…
Cancel
Save