From 922c5058e34b990341581a02a7c87a02f23f2f82 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sun, 14 Apr 2019 17:50:25 -0400 Subject: [PATCH] sanitize names --- src/compile/render-dom/wrappers/Slot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compile/render-dom/wrappers/Slot.ts b/src/compile/render-dom/wrappers/Slot.ts index 4e7635c84d..e48c74d7f5 100644 --- a/src/compile/render-dom/wrappers/Slot.ts +++ b/src/compile/render-dom/wrappers/Slot.ts @@ -64,8 +64,8 @@ export default class SlotWrapper extends Wrapper { let get_slot_context; if (this.node.values.size > 0) { - get_slot_changes = renderer.component.get_unique_name(`get_${slot_name}_slot_changes`); - get_slot_context = renderer.component.get_unique_name(`get_${slot_name}_slot_context`); + get_slot_changes = renderer.component.get_unique_name(`get_${sanitize(slot_name)}_slot_changes`); + get_slot_context = renderer.component.get_unique_name(`get_${sanitize(slot_name)}_slot_context`); const context_props = get_slot_data(this.node.values, false); const changes_props = [];