()
| 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 |
no test coverage detected