mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Fixed some remaining jqxhr objects hanging around.
This commit is contained in:
parent
a481af08d3
commit
3b87c9c360
1 changed files with 3 additions and 0 deletions
|
@ -32,10 +32,12 @@ class CocoModel extends Backbone.Model
|
|||
|
||||
onError: ->
|
||||
@loading = false
|
||||
@jqxhr = null
|
||||
|
||||
onLoaded: ->
|
||||
@loaded = true
|
||||
@loading = false
|
||||
@jqxhr = null
|
||||
@markToRevert()
|
||||
@loadFromBackup()
|
||||
|
||||
|
@ -91,6 +93,7 @@ class CocoModel extends Backbone.Model
|
|||
@jqxhr
|
||||
|
||||
markToRevert: ->
|
||||
return unless @saveBackups
|
||||
if @type() is 'ThangType'
|
||||
@_revertAttributes = _.clone @attributes # No deep clones for these!
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue