Change $$.coffee and UI.coffee to more standard form.

This commit is contained in:
ccd0 2016-06-12 00:11:29 -07:00
parent 3646280629
commit 9c1bf5bfdf
2 changed files with 6 additions and 2 deletions

View File

@ -382,9 +382,11 @@ checkbox = (name, text, checked) ->
$.add label, [input, $.tn " #{text}"] $.add label, [input, $.tn " #{text}"]
label label
return { UI = {
dialog: dialog dialog: dialog
Menu: Menu Menu: Menu
hover: hoverstart hover: hoverstart
checkbox: checkbox checkbox: checkbox
} }
return UI

View File

@ -1,2 +1,4 @@
return (selector, root=d.body) -> $$ = (selector, root=d.body) ->
[root.querySelectorAll(selector)...] [root.querySelectorAll(selector)...]
return $$