From f765da25e4d7b102be2092e5a41d9f61d83ab6b2 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 24 Nov 2018 08:57:31 -0500 Subject: [PATCH] allow missing slots --- src/internal/Component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/Component.js b/src/internal/Component.js index 45ee7a46a8..eec3cd15cd 100644 --- a/src/internal/Component.js +++ b/src/internal/Component.js @@ -12,7 +12,7 @@ export class $$Component { this.$$bindings = blankObject(); this.$$callbacks = blankObject(); - this.$$slotted = options.slots; + this.$$slotted = options.slots || {}; set_current_component(this); const [get_state, inject_props, inject_refs] = this.$$init(