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:
parent
ef944b5713
commit
436fffb6bb
@ -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(', ')} }) => {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user