* @param {!Window} win * @restricted
(win)
| 1125 | * @restricted |
| 1126 | */ |
| 1127 | stopTimer_(win) { |
| 1128 | if (!this.isRunning()) { |
| 1129 | return; |
| 1130 | } |
| 1131 | this.intervalCallback_(); |
| 1132 | this.intervalCallback_ = null; |
| 1133 | win.clearInterval(this.intervalId_); |
| 1134 | this.intervalId_ = undefined; |
| 1135 | this.lastRequestTime_ = undefined; |
| 1136 | this.unlistenForStop_(); |
| 1137 | this.listenForStart_(); |
| 1138 | } |
| 1139 | |
| 1140 | /** |
| 1141 | * @private |
no test coverage detected