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

Method loadFromBackup

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

Source from the content-addressed store, hash-verified

165 }
166
167 loadFromBackup () {
168 if (!this.saveBackups) { return }
169 const existing = storage.load(this.backupKey())
170 if (existing) {
171 this.set(existing, { silent: true })
172 CocoModel.backedUp[this.backupKey()] = this
173 return this
174 }
175 }
176
177 saveBackup () { return this.saveBackupNow() }
178

Callers 2

onLoadedMethod · 0.95
initializeMethod · 0.80

Calls 3

backupKeyMethod · 0.95
setMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected