Think I may have fixed the color group setting issue again.

This commit is contained in:
Nick Winter 2014-09-02 17:46:52 -07:00
parent 23516175d4
commit 5b0e996f93

View file

@ -154,7 +154,10 @@ class CocoModel extends Backbone.Model
markToRevert: ->
if @type() is 'ThangType'
@_revertAttributes = _.clone @attributes # No deep clones for these!
# Don't deep clone the raw vector data, but do deep clone everything else.
@_revertAttributes = _.clone @attributes
for smallProp, value of @attributes when value and smallProp isnt 'raw'
@_revertAttributes[smallProp] = _.cloneDeep value
else
@_revertAttributes = $.extend(true, {}, @attributes)