pull/3533/head
Richard Harris 5 years ago
parent 6ea7d77f68
commit 21e021311a

@ -399,7 +399,7 @@ export default class Expression {
}
});
invalidate(component, scope, code, node, Array.from(traced));
invalidate(component, scope, code, node, traced);
}
}
});

@ -179,7 +179,7 @@ export default function dom(
// onto the initial function call
const names = new Set(extract_names(assignee));
invalidate(component, scope, code, node, Array.from(names));
invalidate(component, scope, code, node, names);
}
}
});

@ -4,7 +4,7 @@ import { Node } from '../../interfaces';
import { nodes_match } from '../../utils/nodes_match';
import { Scope } from './scope';
export function invalidate(component: Component, scope: Scope, code: MagicString, node: Node, names: string[]) {
export function invalidate(component: Component, scope: Scope, code: MagicString, node: Node, names: Set<string>) {
const [head, ...tail] = Array.from(names).filter(name => {
const owner = scope.find_owner(name);
if (owner && owner !== component.instance_scope) return false;

Loading…
Cancel
Save