Removed layerListEntry from global variables

This commit is contained in:
unsettledgames
2021-07-23 13:08:04 +02:00
parent 6e4ab3990d
commit d3781979b4
4 changed files with 41 additions and 37 deletions

View File

@ -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;