MCPcopy Index your code
hub / github.com/codecombat/codecombat / revert

Method revert

app/models/CocoModel.js:331–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329 }
330
331 revert () {
332 this.clear({ silent: true })
333 if (this._revertAttributes) { this.set(this._revertAttributes, { silent: true }) }
334 return this.clearBackup()
335 }
336
337 clearBackup () {
338 return storage.remove(this.backupKey())

Callers 6

saveBranchMethod · 0.80
onRevertModelMethod · 0.80

Calls 2

setMethod · 0.95
clearBackupMethod · 0.95

Tested by

no test coverage detected