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

Method constructor

app/core/ViewVisibleTimer.js:61–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 constructor () {
62 super()
63 this.running = false
64 // If the user is inactive for this many seconds, stop the timer and
65 // record the time they were active (NOT including this timeout)
66 // If they come back before this timeout, include the time they were "away"
67 // in the timer
68 this.awayTimeoutLimit = 5 * 1000
69 this.awayTimeoutId = null
70 this.throttleRate = 50
71 }
72
73 startTimer (featureData) {
74 this.featureData = featureData

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected