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

@ -21,7 +21,6 @@
/**functions**/
//=include _tools.js
//=include tools/*.js
//=include _createColorPalette.js
//=include _changeZoom.js
//=include ColorModule.js
//=include _drawLine.js
@ -56,10 +55,6 @@
//=include _ellipse.js
//=include Startup.js
/**onload**/
//=include _onLoad.js
//=include _onbeforeunload.js
/**feature toggles**/
//=include _featureToggles.js
@ -115,4 +110,12 @@ window.onload = function () {
Dialogue.showDialogue('splash', false);
});
}
};
//prevent user from leaving page with unsaved data
window.onbeforeunload = function() {
if (documentCreated)
return 'You will lose your pixel if it\'s not saved!';
else return;
};