diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-10-26 06:29:45 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-10-26 06:36:37 +0000 |
| commit | 86f59196895bdc401daf63b4b7a6c9f503845729 (patch) | |
| tree | f6fdec9e6a3f86fca4b5abf071c4da7622cbde77 /lib/html.client.moon | |
| parent | finish koch (diff) | |
| download | mmm-86f59196895bdc401daf63b4b7a6c9f503845729.tar.gz mmm-86f59196895bdc401daf63b4b7a6c9f503845729.zip | |
add tablefs
Diffstat (limited to 'lib/html.client.moon')
| -rw-r--r-- | lib/html.client.moon | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/html.client.moon b/lib/html.client.moon index 098b974..eb4d7fe 100644 --- a/lib/html.client.moon +++ b/lib/html.client.moon @@ -24,12 +24,6 @@ element = (element) -> (...) -> else e\appendChild child -elements = {} -add = (e) -> elements[e] = element e - -for e in *{'div', 'form', 'span', 'a', 'p', 'button', 'ul', 'ol', 'li', 'i', 'b', 'u', 'tt'} do add e -for e in *{'article', 'section', 'header', 'footer', 'content', 'pre'} do add e -for e in *{'br', 'hr', 'img', 'input', 'p', 'canvas', 'textarea', 'script'} do add e -for i=1,8 do add "h" .. i - -elements +setmetatable {}, __index: (name) => + with val = element name + @[name] = val |
