Fixed the patch view loading.

This commit is contained in:
Scott Erickson 2014-05-08 14:54:47 -07:00
parent 9c3cefa457
commit 3d51969757

View file

@ -37,9 +37,11 @@ module.exports = class PatchModal extends ModalView
if @targetModel.hasWriteAccess()
headModel = @originalSource.clone(false)
headModel.set(@targetModel.attributes)
headModel.loaded = true
pendingModel = @originalSource.clone(false)
pendingModel.applyDelta(@patch.get('delta'))
pendingModel.loaded = true
@deltaView = new DeltaView({model:pendingModel, headModel:headModel})
changeEl = @$el.find('.changes-stub')