diff --git a/README.md b/README.md index fa561a1..c4ce210 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,9 @@ The next version is mostly focused on adding missing essential features and port Suggestions / Planned features: - Line tool -- Resize canvas - Resize sprite - Load palette from LPE file - Move colours in (advanced) palette editor -- Duplicate layer - Symmetry options - Custom color picker diff --git a/js/_layer.js b/js/_layer.js index ca0f241..493aa12 100644 --- a/js/_layer.js +++ b/js/_layer.js @@ -463,7 +463,7 @@ function deleteLayer(saveHistory = true) { function duplicateLayer(event, saveHistory = true) { let layerIndex = layers.indexOf(currentLayer); let toDuplicate = currentLayer; - let menuEntries = layerList.childNodes + let menuEntries = layerList.children; // Increasing z-indexes of the layers above for (let i=getMenuEntryIndex(menuEntries, toDuplicate.menuEntry) - 1; i>0; i--) {