mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-13 13:35:30 -04:00
commit
1789723d4d
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ class CocoModel extends Backbone.Model
|
|||
res
|
||||
|
||||
markToRevert: ->
|
||||
@_revertAttributes = _.clone @attributes
|
||||
if @type() != 'ThangType'
|
||||
@_revertAttributes = $.extend(true, {}, @attributes)
|
||||
|
||||
revert: ->
|
||||
@set(@_revertAttributes, {silent: true}) if @_revertAttributes
|
||||
|
|
Loading…
Add table
Reference in a new issue