mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
A bit of error logging for #1220.
This commit is contained in:
parent
3862bd2376
commit
abcc75a6f2
1 changed files with 9 additions and 6 deletions
|
@ -207,7 +207,10 @@ class CocoModel extends Backbone.Model
|
|||
|
||||
applyDelta: (delta) ->
|
||||
newAttributes = $.extend(true, {}, @attributes)
|
||||
try
|
||||
jsondiffpatch.patch newAttributes, delta
|
||||
catch error
|
||||
console.error "Error applying delta", delta, "to attributes", newAttributes, error
|
||||
@set newAttributes
|
||||
|
||||
getExpandedDelta: ->
|
||||
|
|
Loading…
Reference in a new issue