aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-01 06:53:46 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-01 06:53:46 +0000
commitd4180f5d3b8079924e62817aa74c401478ad7932 (patch)
tree4de3f181659531e00f216ca55e07975ade9823ff
parentalmost there tbh (diff)
downloadmmm-d4180f5d3b8079924e62817aa74c401478ad7932.tar.gz
mmm-d4180f5d3b8079924e62817aa74c401478ad7932.zip
fix event handles in lib.dom
-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