From 9c1bf5bfdff8b9a676893573711c0e2f79307198 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 12 Jun 2016 00:11:29 -0700 Subject: [PATCH] Change $$.coffee and UI.coffee to more standard form. --- src/General/UI.coffee | 4 +++- src/platform/$$.coffee | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/General/UI.coffee b/src/General/UI.coffee index ec7ce109ef..66381bf94c 100644 --- a/src/General/UI.coffee +++ b/src/General/UI.coffee @@ -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 diff --git a/src/platform/$$.coffee b/src/platform/$$.coffee index 8f7b773a60..d1c2b1258f 100644 --- a/src/platform/$$.coffee +++ b/src/platform/$$.coffee @@ -1,2 +1,4 @@ -return (selector, root=d.body) -> +$$ = (selector, root=d.body) -> [root.querySelectorAll(selector)...] + +return $$