Missed committing part of previous fix.

This commit is contained in:
Nick Winter 2014-09-03 10:58:43 -07:00
parent 975c6ad2a6
commit c1a7b70849

View file

@ -64,7 +64,7 @@ class CocoModel extends Backbone.Model
set: (attributes, options) ->
delete @attributesWithDefaults
inFlux = @loading or not @loaded
@markToRevert() unless inFlux or @_revertAttributes or @project or options?.silent
@markToRevert() unless inFlux or @_revertAttributes or @project or options?.fromMerge
res = super attributes, options
@saveBackup() if @saveBackups and (not inFlux) and @hasLocalChanges()
res