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

Method updateSpectateList

app/views/ladder/LadderView.js:494–498  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

492 isAILeagueArena () { return _.find(utils.arenas, { slug: this.levelID }) }
493
494 updateSpectateList () {
495 if (!this.level?.isType('ladder')) return
496 this.leaderboardRankings = this.ladderTab?.rankings || []
497 this.renderSelectors('.spectate-players')
498 }
499
500 onClickNewSpectateButton () {
501 const player1Index = parseInt(this.$el.find('#spectate-player-1').val().split(':')[0]) - 1

Callers

nothing calls this directly

Calls 1

isTypeMethod · 0.80

Tested by

no test coverage detected