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

Method onLoaded

app/views/ladder/SimulateTabView.js:51–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 }
50
51 onLoaded () {
52 let needle
53 super.onLoaded()
54 this.autoSimulates = (utils.getQueryVariable('simulate') !== false) && (needle = this.options.level.get('slug'), !['ace-of-coders', 'zero-sum'].includes(needle))
55 if (!this.simulator && ((document.location.hash === '#simulate') || this.autoSimulates)) {
56 return this.startSimulating()
57 }
58 }
59
60 afterRender () {
61 return super.afterRender()

Callers

nothing calls this directly

Calls 2

startSimulatingMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected