MCPcopy Create free account
hub / github.com/codecombat/codecombat / canUndo

Method canUndo

ozaria/engine/cinematic/UndoSystem.js:35–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 get canUndo () {
36 if (this.markFirstStopPoint === null) {
37 return this.undoCommandStack.length > 0
38 } else {
39 return this.undoCommandStack.length > this.markFirstStopPoint
40 }
41 }
42
43 // We need to store commands that we can play forward separate from commands we
44 // use to undo state. This allows us to navigate backwards and reconstruct the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected