MCPcopy Create free account
hub / github.com/breck7/scroll / redo

Method redo

external/.scrollLibs.js:17570–17576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17568 return this.toString() !== this._getSavedVersion()
17569 }
17570 async redo() {
17571 const undoStack = this._getUndoStack()
17572 const redoStack = this._getRedoStack()
17573 if (!redoStack.length) return undefined
17574 undoStack.push(redoStack.pop())
17575 return this._reloadFromUndoTop()
17576 }
17577 async undo() {
17578 const undoStack = this._getUndoStack()
17579 const redoStack = this._getRedoStack()

Callers 1

.scrollLibs.jsFile · 0.80

Calls 3

_getUndoStackMethod · 0.95
_getRedoStackMethod · 0.95
_reloadFromUndoTopMethod · 0.95

Tested by

no test coverage detected