From 65fc4e3b969e8d254113b669332b6697bc300c5e Mon Sep 17 00:00:00 2001 From: Th0r Date: Sat, 2 May 2020 02:59:18 +0500 Subject: [PATCH] Fix: push deps to array before check --- src/compiler/compile/render_dom/wrappers/shared/bind_this.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/render_dom/wrappers/shared/bind_this.ts b/src/compiler/compile/render_dom/wrappers/shared/bind_this.ts index b5df0489df..8a9830b01b 100644 --- a/src/compiler/compile/render_dom/wrappers/shared/bind_this.ts +++ b/src/compiler/compile/render_dom/wrappers/shared/bind_this.ts @@ -54,10 +54,10 @@ export default function bind_this(component: Component, block: Block, binding: B const args = []; for (const id of contextual_dependencies) { + args.push(id); if (block.variables.has(id.name)) { if (block.renderer.context_lookup.get(id.name).is_contextual) continue; } - args.push(id); block.add_variable(id, block.renderer.reference(id.name)); }