diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 09:01:49 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 09:01:49 +0000 |
| commit | fc181b154fb3f5cdefcf72c2a496b5b14f274e79 (patch) | |
| tree | 5b4cfbebb4760fba68161265f07826b55206c311 /lib/dom.client.moon | |
| parent | REHYDRATION (diff) | |
| parent | faster time to first render (diff) | |
| download | mmm-fc181b154fb3f5cdefcf72c2a496b5b14f274e79.tar.gz mmm-fc181b154fb3f5cdefcf72c2a496b5b14f274e79.zip | |
Merge branch 'root-mmmfs'
Diffstat (limited to 'lib/dom.client.moon')
| -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 |
