diff --git a/src/generators/dom/visitors/Component/Binding.js b/src/generators/dom/visitors/Component/Binding.js index 289c796118..c706e755a4 100644 --- a/src/generators/dom/visitors/Component/Binding.js +++ b/src/generators/dom/visitors/Component/Binding.js @@ -35,7 +35,7 @@ export default function visitBinding ( generator, block, state, node, attribute, prop }); - const setter = getSetter({ block, name, keypath, context: '_context', attribute, dependencies, value: 'value' }); + const setter = getSetter({ generator, block, name, keypath, context: '_context', attribute, dependencies, value: 'value' }); generator.hasComplexBindings = true; diff --git a/src/generators/dom/visitors/Element/Binding.js b/src/generators/dom/visitors/Element/Binding.js index c9e2c66cbe..c7da63c32b 100644 --- a/src/generators/dom/visitors/Element/Binding.js +++ b/src/generators/dom/visitors/Element/Binding.js @@ -21,7 +21,7 @@ export default function visitBinding ( generator, block, state, node, attribute const value = getBindingValue( generator, block, state, node, attribute, isMultipleSelect, bindingGroup, type ); const eventName = getBindingEventName( node ); - let setter = getSetter({ block, name, keypath, context: '_svelte', attribute, dependencies, value }); + let setter = getSetter({ generator, block, name, keypath, context: '_svelte', attribute, dependencies, value }); let updateElement; //