From 42cca5be6fb4f9b112266ee14a5ba73d6c5829fa Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 18 Jan 2018 07:54:38 -0500 Subject: [PATCH] Actually pass the dom to the render method --- src/looped_in/sidebar.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/looped_in/sidebar.cljs b/src/looped_in/sidebar.cljs index 57df177..2ee7da1 100644 --- a/src/looped_in/sidebar.cljs +++ b/src/looped_in/sidebar.cljs @@ -80,10 +80,10 @@ "Renders the new DOM This is where clever diffing algorithms would go if this was React" - [sidebar-dom] + [$sidebar-dom] (let [$container (dom/getElement "sidebarContent")] (dom/removeChildren $container) - (dom/append $container))) + (apply dom/append $container $sidebar-dom))) (defn main "Runs the model-update-view loop"