We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a84a5 commit d432a42Copy full SHA for d432a42
src/compiler/compile/Component.ts
@@ -798,14 +798,13 @@ export default class Component {
798
799
names.forEach(name => {
800
const scope_owner = scope.find_owner(name);
801
- if (scope_owner !== null) {
802
- if (scope_owner === instance_scope) {
803
- const variable = component.var_lookup.get(name);
804
- variable[deep ? 'mutated' : 'reassigned'] = true;
805
- }
806
- } else if (module_scope && module_scope.has(name)) {
+ if (
+ scope_owner !== null
+ ? scope_owner === instance_scope
+ : module_scope && module_scope.has(name)
+ ) {
807
const variable = component.var_lookup.get(name);
808
+ variable[deep ? "mutated" : "reassigned"] = true;
809
}
810
});
811
0 commit comments