0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-25 00:51:01 +01:00

Merge pull request #2698 from jacobmischka/fix-get-slot-changes

Initialize `get_slot_changes` to null when not needed
This commit is contained in:
Rich Harris 2019-05-08 23:17:31 -04:00 committed by GitHub
commit 53c66654b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,7 @@ export default class SlotWrapper extends Wrapper {
const ${get_slot_context} = (${arg}) => (${stringify_props(context_props)});
`);
} else {
get_slot_changes = 'null';
get_slot_context = 'null';
}