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

Method constructor

app/views/ladder/LadderTabView.js:71–87  ·  view source on GitHub ↗
(options, level, sessions, tournamentId)

Source from the content-addressed store, hash-verified

69 // 'auth:logged-in-with-gplus': 'onConnectedWithGPlus'
70
71 constructor (options, level, sessions, tournamentId) {
72 super(...arguments)
73 this.onFacebookFriendsLoaded = this.onFacebookFriendsLoaded.bind(this)
74 this.onFacebookFriendSessionsLoaded = this.onFacebookFriendSessionsLoaded.bind(this)
75 this.gplusFriendsLoaded = this.gplusFriendsLoaded.bind(this)
76 this.onGPlusFriendSessionsLoaded = this.onGPlusFriendSessionsLoaded.bind(this)
77
78 this.level = level
79 this.sessions = sessions
80 this.tournamentId = tournamentId
81 this.teams = teamDataFromLevel(this.level)
82 this.leaderboards = []
83 this.refreshLadder()
84
85 this.capitalize = _.string.capitalize
86 this.selectedTeam = 'humans'
87 }
88
89 // Trying not loading the FP/G+ stuff for now to see if anyone complains they were using it so we can have just two columns.
90 // @socialNetworkRes = @supermodel.addSomethingResource('social_network_apis', 0)

Callers

nothing calls this directly

Calls 1

refreshLadderMethod · 0.95

Tested by

no test coverage detected