mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
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:
@ -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;
|
||||
};
|
Reference in New Issue
Block a user