Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 11, 2018
1 parent c3a0878 commit fcae19b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generators/nodes/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ function mungeBinding(binding: Node, block: Block): Binding {
let prop;

if (contextual) {
obj = block.listNames.get(name);
prop = block.indexNames.get(name);
obj = `state.${block.listNames.get(name)}`;
prop = `state.${block.indexNames.get(name)}`;
} else if (binding.value.type === 'MemberExpression') {
prop = `[✂${binding.value.property.start}-${binding.value.property.end}✂]`;
if (!binding.value.computed) prop = `'${prop}'`;
Expand Down

0 comments on commit fcae19b

Please sign in to comment.