From a4acbe2e8e959d0bc380e6a34339d3ac5a32c5d7 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Wed, 19 Apr 2017 08:42:42 -0400 Subject: [PATCH] prevent bindings interfering with each other on the same element --- src/generators/dom/visitors/Element/Binding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generators/dom/visitors/Element/Binding.js b/src/generators/dom/visitors/Element/Binding.js index e88fe8df4305..4255ff607cfa 100644 --- a/src/generators/dom/visitors/Element/Binding.js +++ b/src/generators/dom/visitors/Element/Binding.js @@ -22,7 +22,7 @@ export default function visitBinding ( generator, block, state, node, attribute let setter = getSetter({ block, name, keypath, context: '_svelte', attribute, dependencies, value }); let updateElement = `${state.parentNode}.${attribute.name} = ${snippet};`; - const lock = block.getUniqueName( `${state.parentNode}_${attribute.name}_updating` ); + const lock = block.alias( `${state.parentNode}_updating` ); let updateCondition = `!${lock}`; //