so close, 4 left

pull/3539/head
Richard Harris 6 years ago
parent 5ece428a09
commit eec4bd14e0

@ -831,7 +831,9 @@ export default class Component {
}); });
}); });
return Array.from(deps).map(n => x`$$invalidate('${n}', ${n})`); return Array.from(deps)
.map(n => x`$$invalidate('${n}', ${n})`)
.reduce((lhs, rhs) => x`${lhs}, ${rhs}}`);
} }
rewrite_props(get_insert: (variable: Var) => Node[]) { rewrite_props(get_insert: (variable: Var) => Node[]) {

@ -127,7 +127,7 @@ export default class WindowWrapper extends Wrapper {
component.partly_hoisted.push(b` component.partly_hoisted.push(b`
function ${id}() { function ${id}() {
${props.map(prop => x`$$invalidate('${prop.name}', ${prop.name} = @_window.${prop.value});`)} ${props.map(prop => b`$$invalidate('${prop.name}', ${prop.name} = @_window.${prop.value});`)}
} }
`); `);

Loading…
Cancel
Save