A bit of error logging for #1220.

This commit is contained in:
Nick Winter 2014-06-24 09:43:14 -07:00
parent 3862bd2376
commit abcc75a6f2

View file

@ -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: ->