Merge pull request #2270 from sveltejs/gh-2268

suppress $props is not defined warning
pull/2273/head
Rich Harris 6 years ago committed by GitHub
commit d71393a377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1175,7 +1175,9 @@ export default class Component {
if (name[0] === '$') {
name = name.slice(1);
this.has_reactive_assignments = true;
this.has_reactive_assignments = true; // TODO does this belong here?
if (name[0] === '$') return; // $$props
}
if (this.var_lookup.has(name)) return;

Loading…
Cancel
Save