codecombat/app/views/game-menu/ChooseHeroView.coffee

21 lines
547 B
CoffeeScript
Raw Normal View History

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
2014-08-10 20:41:18 -04:00
events:
'click #restart-level-confirm-button': -> Backbone.Mediator.publish 'level:restart', {}
2014-08-10 20:41:18 -04:00
getRenderData: (context={}) ->
context = super(context)
context.showDevBits = @options.showDevBits
context
afterRender: ->
super()