mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-01 08:23:57 -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()
|
if @targetModel.hasWriteAccess()
|
||||||
headModel = @originalSource.clone(false)
|
headModel = @originalSource.clone(false)
|
||||||
headModel.set(@targetModel.attributes)
|
headModel.set(@targetModel.attributes)
|
||||||
|
headModel.loaded = true
|
||||||
|
|
||||||
pendingModel = @originalSource.clone(false)
|
pendingModel = @originalSource.clone(false)
|
||||||
pendingModel.applyDelta(@patch.get('delta'))
|
pendingModel.applyDelta(@patch.get('delta'))
|
||||||
|
pendingModel.loaded = true
|
||||||
|
|
||||||
@deltaView = new DeltaView({model:pendingModel, headModel:headModel})
|
@deltaView = new DeltaView({model:pendingModel, headModel:headModel})
|
||||||
changeEl = @$el.find('.changes-stub')
|
changeEl = @$el.find('.changes-stub')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue