mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Fix #390
The issue here was configSchema is an attribute within attributes and so revertAttributes and attributes get the same instance of it when clone is used. Later calls to _.equals fail when only configSchema has changed.
This commit is contained in:
parent
b91f3200c2
commit
60ca991c58
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class CocoModel extends Backbone.Model
|
|||
res
|
||||
|
||||
markToRevert: ->
|
||||
@_revertAttributes = _.clone @attributes
|
||||
@_revertAttributes = _.cloneDeep @attributes
|
||||
|
||||
revert: ->
|
||||
@set(@_revertAttributes, {silent: true}) if @_revertAttributes
|
||||
|
|
Loading…
Reference in a new issue