Deleted _createColorPalette.js, commented files

Moved createColorPalette to the ColorModule, removed _onLoad.js and _onbeforeunload.js, commented the code and labelled with REFACTOR the comments that refere to the refactoring.
This commit is contained in:
unsettledgames
2021-07-18 23:17:41 +02:00
parent 7976675132
commit 7c4fb652cf
11 changed files with 138 additions and 112 deletions

View File

@@ -1,3 +1,15 @@
/** BUG:
* - Create a new pixel
* - Open a png file
* - Draw with the pencil
* - Hit CTRL+Z
* - RESULT: undo doesn't work, the app can't find the current layer
*
* - RELATED: when opening an LPE file, the app draws on a layer that is below the one in which the
* file is loaded. This is because the data is loaded on new layers, but the first one
* isn't removed and sometimes it could have the same ID of a recently added layer.
*/
/** How the history works
* - undoStates stores the states that can be undone
* - redoStates stores the states that can be redone