mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-02 20:07:25 -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) ->
|
applyDelta: (delta) ->
|
||||||
newAttributes = $.extend(true, {}, @attributes)
|
newAttributes = $.extend(true, {}, @attributes)
|
||||||
|
try
|
||||||
jsondiffpatch.patch newAttributes, delta
|
jsondiffpatch.patch newAttributes, delta
|
||||||
|
catch error
|
||||||
|
console.error "Error applying delta", delta, "to attributes", newAttributes, error
|
||||||
@set newAttributes
|
@set newAttributes
|
||||||
|
|
||||||
getExpandedDelta: ->
|
getExpandedDelta: ->
|
||||||
|
|
Loading…
Reference in a new issue