MCPcopy Index your code
hub / github.com/codecombat/codecombat / insertSubviews

Method insertSubviews

app/views/play/SpectateView.js:250–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 }
249
250 insertSubviews () {
251 let needle
252 this.insertSubView(this.tome = new TomeView({ levelID: this.levelID, session: this.session, otherSession: this.otherSession, thangs: this.world.thangs, supermodel: this.supermodel, spectateView: true, level: this.level, god: this.god }))
253 this.insertSubView(new PlaybackView({ session: this.session, level: this.level }))
254
255 const goldInDuelStatsView = (needle = this.level.get('slug'), ['wakka-maul', 'cross-bones'].includes(needle))
256 if (!goldInDuelStatsView) { this.insertSubView(new GoldView({})) }
257 this.insertSubView(new HUDView({ level: this.level }))
258 if (this.level.isLadder()) { this.insertSubView(new DuelStatsView({ level: this.level, session: this.session, otherSession: this.otherSession, supermodel: this.supermodel, thangs: this.world.thangs, showsGold: goldInDuelStatsView })) }
259 return this.insertSubView(this.controlBar = new ControlBarView({ worldName: utils.i18n(this.level.attributes, 'name'), session: this.session, level: this.level, supermodel: this.supermodel, spectateGame: true }))
260 }
261
262 // callbacks
263

Callers 1

onLevelLoaderLoadedMethod · 0.95

Calls 2

isLadderMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected