diff --git a/app/models/CocoModel.coffee b/app/models/CocoModel.coffee index 515bbfa57..add8b5600 100644 --- a/app/models/CocoModel.coffee +++ b/app/models/CocoModel.coffee @@ -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