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

Method constructor

app/views/ladder/SimulateTabView.js:33–49  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

31 }
32
33 constructor (options) {
34 if (!options) {
35 options = {}
36 }
37 super(options)
38 this.options = options
39 this.refreshAndContinueSimulating = this.refreshAndContinueSimulating.bind(this)
40 this.simulatedByYouCount = me.get('simulatedBy') || 0
41 this.simulatorsLeaderboardData = new SimulatorsLeaderboardData(me, this.options.level)
42 this.simulatorsLeaderboardDataRes = this.supermodel.addModelResource(this.simulatorsLeaderboardData, 'top_simulators', { cache: false })
43 this.simulatorsLeaderboardDataRes.load()
44 Promise.all(
45 ['javascript', 'python', 'coffeescript', 'lua', 'cpp', 'java'].map(
46 loadAetherLanguage
47 )
48 )
49 }
50
51 onLoaded () {
52 let needle

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected