aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom.client.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-01 09:01:49 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-01 09:01:49 +0000
commitfc181b154fb3f5cdefcf72c2a496b5b14f274e79 (patch)
tree5b4cfbebb4760fba68161265f07826b55206c311 /lib/dom.client.moon
parentREHYDRATION (diff)
parentfaster time to first render (diff)
downloadmmm-fc181b154fb3f5cdefcf72c2a496b5b14f274e79.tar.gz
mmm-fc181b154fb3f5cdefcf72c2a496b5b14f274e79.zip
Merge branch 'root-mmmfs'
Diffstat (limited to 'lib/dom.client.moon')
-rw-r--r--lib/dom.client.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dom.client.moon b/lib/dom.client.moon
index a5a319b..acdbfa4 100644
--- a/lib/dom.client.moon
+++ b/lib/dom.client.moon
@@ -24,9 +24,9 @@ element = (element) -> (...) ->
for child in *children
if 'string' == type child
- e.innerHTML ..= child
- else
- e\appendChild child
+ child = document\createTextNode child
+
+ e\appendChild child
setmetatable {}, __index: (name) =>
with val = element name