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

Method _recordChange

external/.scrollLibs.js:17613–17616  ·  view source on GitHub ↗
(newVersion)

Source from the content-addressed store, hash-verified

17611 this.setSubparticles(this._getTopUndoVersion())
17612 }
17613 _recordChange(newVersion) {
17614 this._clearRedoStack()
17615 this._getUndoStack().push(newVersion) // todo: use diffs?
17616 }
17617 static fromCsv(str) {
17618 return this.fromDelimited(str, ",", '"')
17619 }

Callers 1

saveVersionMethod · 0.95

Calls 2

_clearRedoStackMethod · 0.95
_getUndoStackMethod · 0.95

Tested by

no test coverage detected