From 770314079327f3c691c8c101f2f61b7b27c6d900 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sun, 7 Jul 2019 09:22:59 -0400 Subject: [PATCH] -> v3.6.5 --- .../compile/render_dom/wrappers/Element/Binding.ts | 10 +++++----- src/runtime/internal/ssr.ts | 9 ++++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts index 3c372093f8..b8057ae6d7 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts @@ -239,11 +239,11 @@ function get_event_handler( name: string, snippet: string ): { - uses_context: boolean; - mutation: string; - contextual_dependencies: Set; - snippet?: string; -} { + uses_context: boolean; + mutation: string; + contextual_dependencies: Set; + snippet?: string; + } { const value = get_value_from_dom(renderer, binding.parent, binding); const store = binding.object[0] === '$' ? binding.object.slice(1) : null; diff --git a/src/runtime/internal/ssr.ts b/src/runtime/internal/ssr.ts index 9499a0405d..1ae1ae1d12 100644 --- a/src/runtime/internal/ssr.ts +++ b/src/runtime/internal/ssr.ts @@ -95,7 +95,14 @@ export function create_ssr_component(fn) { render: (props = {}, options = {}) => { on_destroy = []; - const result: { head: string, css: Set<{ map: null, code: string }> } = { head: '', css: new Set() }; + const result: { + head: string; + css: Set<{ + map: null; + code: string; + }>; + } = { head: '', css: new Set() }; + const html = $$render(result, props, {}, options); run_all(on_destroy);