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

Method pushUndoCommand

ozaria/engine/cinematic/UndoSystem.js:71–75  ·  view source on GitHub ↗

* Pushes a single undo effect command. Used to undo effect operations. * @param {AbstractCommand} command that causes an effect.

(command)

Source from the content-addressed store, hash-verified

69 * @param {AbstractCommand} command that causes an effect.
70 */
71 pushUndoCommand (command) {
72 if (!this._ignoreUndoCommands) {
73 this.currentNodeUndoCommands.push(command)
74 }
75 }
76
77 // The first array of commands is not always the start of the cinematic.
78 // This can be called from the cinematic controller in order to communicate

Callers 2

runShotMethod · 0.80
[undo]Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected