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

Method startSimulating

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

Source from the content-addressed store, hash-verified

72 }
73
74 startSimulating () {
75 this.simulationPageRefreshTimeout = _.delay(this.refreshAndContinueSimulating, 10 * 60 * 1000)
76 this.simulateNextGame()
77 $('#simulate-button').prop('disabled', true)
78 return $('#simulate-button').text('Simulating...')
79 }
80
81 refreshAndContinueSimulating () {
82 // We refresh the page every now and again to make sure simulations haven't gotten derailed by bogus games, and that simulators don't hang on to old, stale code or data.

Callers 2

onLoadedMethod · 0.95
onSimulateButtonClickMethod · 0.95

Calls 1

simulateNextGameMethod · 0.95

Tested by

no test coverage detected