MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/views/play/modal/LeaderboardModal.js:21–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19module.exports = (LeaderboardModal = (function () {
20 LeaderboardModal = class LeaderboardModal extends ModalView {
21 static initClass () {
22 this.prototype.id = 'leaderboard-modal'
23 this.prototype.template = template
24 this.prototype.instant = true
25 this.prototype.timespans = ['latest', 'all']
26
27 this.prototype.subscriptions = {}
28
29 this.prototype.events = {
30 'shown.bs.tab #leaderboard-nav a': 'onTabShown',
31 'click #close-modal': 'hide'
32 }
33 }
34
35 constructor (options) {
36 super(options)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected