()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected