diff --git a/js/_editorMode.js b/js/_editorMode.js index 0b87076..e89626c 100644 --- a/js/_editorMode.js +++ b/js/_editorMode.js @@ -26,11 +26,8 @@ function switchMode(currentMode, mustConfirm = true) { //switch to basic mode else { - - //if there is a current layer (a document is active) if (currentLayer) { - //confirm with user before flattening image if (mustConfirm ) { if (!confirm('Switching to basic mode will flatten all the visible layers. Are you sure you want to continue?')) { diff --git a/js/_layer.js b/js/_layer.js index c37684e..d2bc82a 100644 --- a/js/_layer.js +++ b/js/_layer.js @@ -244,9 +244,10 @@ class Layer { layer.menuEntry.classList.add("selected-layer"); currentLayer = layer; } - +/* canvas = currentLayer.canvas; context = currentLayer.context; +*/ } toggleLock() {