mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
27 lines
591 B
CoffeeScript
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()
|