* @return {void}@memberof IdleTimer
()
| 45 | * @return {void}@memberof IdleTimer |
| 46 | */ |
| 47 | stop() { |
| 48 | if (!this.timer) { |
| 49 | Debugger.log('warn', '[IdleTimer.reset()] timer has not been started'); |
| 50 | return; |
| 51 | } |
| 52 | clearTimeout(this.timer); |
| 53 | this.timer = null; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Calls all subscribed functions, and resets the timer. |