mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Fixed a case where the supermodel was overriding what a previous supermodel had set for saveBackups.
This commit is contained in:
parent
815ef88e78
commit
dde43d5df3
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ module.exports = class SuperModel extends Backbone.Model
|
|||
return @progress is 1.0 or not @denom
|
||||
|
||||
addModelResource: (modelOrCollection, name, fetchOptions, value=1) ->
|
||||
modelOrCollection.saveBackups = @shouldSaveBackups(modelOrCollection)
|
||||
modelOrCollection.saveBackups = modelOrCollection.saveBackups or @shouldSaveBackups(modelOrCollection)
|
||||
@checkName(name)
|
||||
res = new ModelResource(modelOrCollection, name, fetchOptions, value)
|
||||
@storeResource(res, value)
|
||||
|
|
Loading…
Reference in a new issue