codecombat/app/views/editor/campaign/CampaignLevelView.coffee

19 lines
417 B
CoffeeScript
Raw Normal View History

CocoView = require 'views/core/CocoView'
module.exports = class CampaignLevelView extends CocoView
id: 'campaign-level-view'
template: require 'templates/editor/campaign/campaign-level-view'
events:
'click .close': 'onClickClose'
constructor: (options, @level) ->
super(options)
getRenderData: ->
c = super()
c.level = @level
c
onClickClose: ->
@$el.addClass('hidden')