This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 921
Possible Refactoring Targets
Scott Bauer edited this page Oct 9, 2016
·
3 revisions
This is an ongoing list of possible things to refactor, and otherwise change, on a code level. Some parts will have issues opened, but others may not until the changes have been discussed and vetted.
Run various linters over Light Table and, as needed, make appropriate changes.
- See https://github.com/LightTable/LightTable/issues/2273
- Move event related functions
->ev
,trigger
on
,on*
,off
,prevent
,stop-propagation
,ready
from dom.cljs into events.cljs as they are DOM event related functions. - Move style related functions
top
,bottom
,left
,right
from dom.cljs into style.cljs as they are style related. Also consider which of the two namespaces is better forheight
,width
,scroll-width
,offset-top
,scroll-top
. - Investigate if
empty
should use.-innerText
or.-textContent
instead of.-innerHTML
. - Investigate if
now
should useDate.now()
instead of(.getTime (js/Date.))
. - Investigate if
$
and its character reference of$
should be added toentities
.
- Make ipc def private (?)
- Make fpath, fs defs private (?)
- Remove
separator
andabsolute?
functions in favor of files.cljs's implementations.
- More meaningful parameter names. See https://github.com/LightTable/LightTable/issues/2263
- More meaningful name for namespace...
docs
could mean multiple things, especially since we have an integrateddoc
plugin.
- Split inline doc and sidebar language doc into separate namespaces or otherwise provide clear delineation between the two.