mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-30 16:03:37 -04: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: ->
|
markToRevert: ->
|
||||||
if @type() is 'ThangType'
|
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
|
else
|
||||||
@_revertAttributes = $.extend(true, {}, @attributes)
|
@_revertAttributes = $.extend(true, {}, @attributes)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue