Skip to content

Commit

Permalink
Merge pull request #2082 from sveltejs/gh-2076
Browse files Browse the repository at this point in the history
fix #2076
  • Loading branch information
Rich-Harris authored Feb 17, 2019
2 parents 94dfeec + a8fcc72 commit 15931af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/render-dom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default function dom(
if (owner && owner !== component.instance_scope) return;

const variable = component.var_lookup.get(name);
if (variable && variable.hoistable || variable.global || variable.module) return;
if (variable && (variable.hoistable || variable.global || variable.module)) return;

pending_assignments.add(name);
component.has_reactive_assignments = true;
Expand Down

0 comments on commit 15931af

Please sign in to comment.