mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Removed layerListEntry from global variables
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
const LayerList = (() => {
|
||||
|
||||
let layerListEntry = document.getElementById("layers-menu").firstElementChild;
|
||||
|
||||
function addLayer(id, saveHistory = true) {
|
||||
// layers.length - 3
|
||||
let index = layers.length - 3;
|
||||
@ -246,6 +248,8 @@ const LayerList = (() => {
|
||||
currentLayer.closeOptionsMenu();
|
||||
}
|
||||
|
||||
// TODO: Can't select the first layer
|
||||
|
||||
function merge(saveHistory = true) {
|
||||
// Saving the layer that should be merged
|
||||
let toMerge = currentLayer;
|
||||
|
Reference in New Issue
Block a user