codecombat/app/views/game-menu/ChooseHeroView.coffee
2014-08-12 09:13:23 -07:00

20 lines
543 B
CoffeeScript

CocoView = require 'views/kinds/CocoView'
template = require 'templates/game-menu/choose-hero-view'
{me} = require 'lib/auth'
ThangType = require 'models/ThangType'
module.exports = class ChooseHeroView extends CocoView
id: 'choose-hero-view'
className: 'tab-pane'
template: template
events:
'click #restart-level-confirm-button': -> Backbone.Mediator.publish 'restart-level'
getRenderData: (context={}) ->
context = super(context)
context.showDevBits = @options.showDevBits
context
afterRender: ->
super()