mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Think I may have fixed the color group setting issue again.
This commit is contained in:
parent
23516175d4
commit
5b0e996f93
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue