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

Method render

app/views/ladder/components/Leaderboard.js:88–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 render () {
89 super.render()
90 if (this.leaderboards) {
91 this.session = this.leaderboards.session
92 this.myRank = +this.leaderboards.myRank
93 this.rankings = this.mapRankings(this.leaderboards.topPlayers.models)
94 this.playerRankings = this.mapRankings(this.nearbySessions())
95 }
96 this.afterRender()
97 return this
98 }
99
100 onLoaded () { return this.render() }
101

Callers 2

onLoadedMethod · 0.95
afterRenderMethod · 0.95

Calls 3

mapRankingsMethod · 0.95
nearbySessionsMethod · 0.95
afterRenderMethod · 0.95

Tested by

no test coverage detected