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

Method initClass

app/views/ladder/LadderTabView.js:49–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47module.exports = (LadderTabView = (function () {
48 LadderTabView = class LadderTabView extends CocoView {
49 static initClass () {
50 this.prototype.id = 'ladder-tab-view'
51 this.prototype.template = require('app/templates/play/ladder/ladder-tab-view')
52 this.prototype.scoreForDisplay = scoreForDisplay
53
54 this.prototype.events = {
55 'click .connect-facebook': 'onConnectFacebook',
56 'click .connect-google-plus': 'onConnectGPlus',
57 'click .name-col-cell': 'onClickPlayerName',
58 'click .spectate-cell': 'onClickSpectateCell',
59 'click .load-more-ladder-entries': 'onLoadMoreLadderEntries',
60 'click [data-toggle="coco-modal"][data-target="core/CreateAccountModal"]': 'openCreateAccountModal'
61 }
62 }
63
64 // Refactored, to-reimplement
65 // subscriptions:

Callers 1

LadderTabView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected