diff --git a/js/_history.js b/js/_history.js index 3663221..9c04fa3 100644 --- a/js/_history.js +++ b/js/_history.js @@ -3,16 +3,11 @@ var redoStates = []; const undoLogStyle = 'background: #87ff1c; color: black; padding: 5px;'; -function HistoryStateFlattenVisible() { - // undo the merge for the number of layers that have been flattened -} - -function HistoryStateFlattenAll(nFlattened) { - this.nFlattened = nFlattened; +function HistoryStateFlattenVisible(flattened) { + this.nFlattened = flattened; this.undo = function() { - console.log(nFlattened); - for (let i=0; i