Change $$.coffee and UI.coffee to more standard form.
This commit is contained in:
parent
3646280629
commit
9c1bf5bfdf
@ -382,9 +382,11 @@ checkbox = (name, text, checked) ->
|
||||
$.add label, [input, $.tn " #{text}"]
|
||||
label
|
||||
|
||||
return {
|
||||
UI = {
|
||||
dialog: dialog
|
||||
Menu: Menu
|
||||
hover: hoverstart
|
||||
checkbox: checkbox
|
||||
}
|
||||
|
||||
return UI
|
||||
|
||||
@ -1,2 +1,4 @@
|
||||
return (selector, root=d.body) ->
|
||||
$$ = (selector, root=d.body) ->
|
||||
[root.querySelectorAll(selector)...]
|
||||
|
||||
return $$
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user