MCPcopy Create free account
hub / github.com/ampproject/amphtml / stopTimer_

Method stopTimer_

extensions/amp-analytics/0.1/events.js:1127–1138  ·  view source on GitHub ↗

* @param {!Window} win * @restricted

(win)

Source from the content-addressed store, hash-verified

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

Callers 1

stopTimer_Method · 0.45

Calls 3

isRunningMethod · 0.95
unlistenForStop_Method · 0.95
listenForStart_Method · 0.95

Tested by

no test coverage detected