mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 18:45:48 -05:00
20 lines
547 B
CoffeeScript
20 lines
547 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 'level:restart', {}
|
|
|
|
getRenderData: (context={}) ->
|
|
context = super(context)
|
|
context.showDevBits = @options.showDevBits
|
|
context
|
|
|
|
afterRender: ->
|
|
super()
|