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

Method onLoaded

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

Source from the content-addressed store, hash-verified

80 })
81
82 const onLoaded = () => {
83 if (this.destroyed) { return }
84 if (this.level.get('description')) { this.levelDescription = marked(utils.i18n(this.level.attributes, 'description')).replace(/<img.*?>/, '') }
85 this.levelBanner = this.level.get('banner')
86 this.teams = teamDataFromLevel(this.level)
87 }
88
89 if (this.level.loaded) { onLoaded() } else { this.level.once('sync', onLoaded) }
90 this.sessions = this.supermodel.loadCollection(new LevelSessionsCollection(this.levelID), 'your_sessions', { cache: false }).model

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected