Minor code simplification (#5065)

pull/5295/head
Teymour Aldridge 4 years ago committed by GitHub
parent 0ac341d2c6
commit 935caee269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -160,8 +160,7 @@ export default class Renderer {
member.is_contextual = true; member.is_contextual = true;
} else { } else {
member.is_non_contextual = true; member.is_non_contextual = true;
const variable = this.component.var_lookup.get(name); member.variable = this.component.var_lookup.get(name);
member.variable = variable;
} }
return member; return member;

@ -302,8 +302,7 @@ export default function dom(
const variable = component.var_lookup.get(prop.name); const variable = component.var_lookup.get(prop.name);
if (variable.hoistable) return false; if (variable.hoistable) return false;
if (prop.name[0] === '$') return false; return prop.name[0] !== '$';
return true;
}); });
const reactive_stores = component.vars.filter(variable => variable.name[0] === '$' && variable.name[1] !== '$'); const reactive_stores = component.vars.filter(variable => variable.name[0] === '$' && variable.name[1] !== '$');

Loading…
Cancel
Save