Actually pass the dom to the render method

This commit is contained in:
Jeremy Dormitzer 2018-01-18 07:54:38 -05:00
parent 0212f35747
commit 42cca5be6f
No known key found for this signature in database
GPG Key ID: 04F17C0F5A32C320

View File

@ -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"