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/init.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/init.client.moon')
| -rw-r--r-- | lib/init.client.moon | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/init.client.moon b/lib/init.client.moon index 981cd25..77ff0ee 100644 --- a/lib/init.client.moon +++ b/lib/init.client.moon @@ -1,4 +1,4 @@ -export MODE, print, warn, relative, append, on_client +export MODE, print, warn, relative, on_client export window, document window = js.global @@ -7,8 +7,9 @@ window = js.global MODE = 'CLIENT' deep_tostring = (tbl, space='') -> - buf = space .. tostring tbl + return tbl if 'userdata' == type tbl + buf = space .. tostring tbl return buf unless 'table' == type tbl buf = buf .. ' {\n' @@ -42,5 +43,4 @@ relative = do name = base .. name if '.' == name\sub 1, 1 _require name -append = document.body\appendChild on_client = (f, ...) -> f ... |
