diff options
Diffstat (limited to 'lib/html.client.moon')
| -rw-r--r-- | lib/html.client.moon | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/html.client.moon b/lib/html.client.moon index eb4d7fe..b8f2bd5 100644 --- a/lib/html.client.moon +++ b/lib/html.client.moon @@ -10,7 +10,10 @@ element = (element) -> (...) -> with e = document\createElement element for k,v in pairs attributes - if 'string' == type k + if k == 'style' and 'table' == type v + for kk,vv in pairs v + e.style[kk] = vv + elseif 'string' == type k e[k] = v -- if there is only one argument, |
