diff options
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 ... |
