mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Fixed the patch view loading.
This commit is contained in:
parent
9c3cefa457
commit
3d51969757
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue