mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Fix for GenerateTerrainModal
This commit is contained in:
parent
b7ba677b00
commit
bf6601c3cc
1 changed files with 5 additions and 0 deletions
|
@ -344,6 +344,11 @@ module.exports = class GenerateTerrainModal extends ModalView
|
|||
events:
|
||||
'click .choose-option': 'onGenerate'
|
||||
|
||||
constructor: (options) ->
|
||||
super options
|
||||
@presets = presets
|
||||
@presetSizes = presetSizes
|
||||
|
||||
onRevertModel: (e) ->
|
||||
id = $(e.target).val()
|
||||
CocoModel.backedUp[id].revert()
|
||||
|
|
Loading…
Reference in a new issue