0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

cut out the middleman

This commit is contained in:
Richard Harris 2018-12-28 21:48:34 -05:00
parent ef944b5713
commit 436fffb6bb
2 changed files with 5 additions and 5 deletions

View File

@ -300,7 +300,7 @@ export default function dom(
${reactive_store_subscriptions}
${set && `$$self.$$.set = ${set};`}
${set && `$$self.$set = ${set};`}
${component.reactive_declarations.length > 0 && deindent`
$$self.$$.update = ($$dirty = { ${Array.from(all_reactive_dependencies).map(n => `${n}: 1`).join(', ')} }) => {

View File

@ -151,8 +151,8 @@ if (typeof HTMLElement !== 'undefined') {
};
}
$set(values) {
this.$$.set(values);
$set() {
// overridden by instance, if it has props
}
}
}
@ -173,8 +173,8 @@ export class SvelteComponent {
};
}
$set(values) {
this.$$.set(values);
$set() {
// overridden by instance, if it has props
}
}