diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 06:53:46 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 06:53:46 +0000 |
| commit | d4180f5d3b8079924e62817aa74c401478ad7932 (patch) | |
| tree | 4de3f181659531e00f216ca55e07975ade9823ff | |
| parent | almost there tbh (diff) | |
| download | mmm-d4180f5d3b8079924e62817aa74c401478ad7932.tar.gz mmm-d4180f5d3b8079924e62817aa74c401478ad7932.zip | |
fix event handles in lib.dom
| -rw-r--r-- | lib/dom.client.moon | 6 |
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 |
