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)
|
||||||
jsondiffpatch.patch newAttributes, delta
|
try
|
||||||
|
jsondiffpatch.patch newAttributes, delta
|
||||||
|
catch error
|
||||||
|
console.error "Error applying delta", delta, "to attributes", newAttributes, error
|
||||||
@set newAttributes
|
@set newAttributes
|
||||||
|
|
||||||
getExpandedDelta: ->
|
getExpandedDelta: ->
|
||||||
|
|
Reference in a new issue