codecombat/app/views/play/modal/LeaderboardTabView.coffee
2015-01-30 21:36:47 -08:00

27 lines
591 B
CoffeeScript

CocoView = require 'views/core/CocoView'
template = require 'templates/play/modal/leaderboard-tab-view'
module.exports = class LeaderboardTabView extends CocoView
template: template
className: 'leaderboard-tab-view'
helpVideoHeight: '295'
helpVideoWidth: '471'
events:
'click .start-subscription-button': "clickSubscribe"
constructor: (options) ->
super options
@timespan = @options.timespan
@levelOriginal = @options.levelOriginal
destroy: ->
super()
getRenderData: ->
c = super()
c.timespan = @timespan
c
afterRender: ->
super()