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

Method onAway

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

Source from the content-addressed store, hash-verified

107 }
108
109 onAway () {
110 this.markLastActive()
111 if (this.running) {
112 this.awayTimeoutId = setTimeout(() => {
113 return this.stopTimer({ subtractTimeout: true })
114 }
115 , this.awayTimeoutLimit)
116 }
117 }
118
119 onAwayBack () {
120 clearTimeout(this.awayTimeoutId)

Callers

nothing calls this directly

Calls 2

markLastActiveMethod · 0.95
stopTimerMethod · 0.95

Tested by

no test coverage detected