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}"]
|
$.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
|
||||||
|
|||||||
@ -1,2 +1,4 @@
|
|||||||
return (selector, root=d.body) ->
|
$$ = (selector, root=d.body) ->
|
||||||
[root.querySelectorAll(selector)...]
|
[root.querySelectorAll(selector)...]
|
||||||
|
|
||||||
|
return $$
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user