* Cancels an interval. * @param {Timeout | string | number} timer * @returns {void}
(timer)
| 169 | * @returns {void} |
| 170 | */ |
| 171 | function clearInterval(timer) { |
| 172 | // clearTimeout and clearInterval can be used to clear timers created from |
| 173 | // both setTimeout and setInterval, as specified by HTML Living Standard: |
| 174 | // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval |
| 175 | clearTimeout(timer); |
| 176 | } |
| 177 | |
| 178 | Timeout.prototype.close = function() { |
| 179 | clearTimeout(this); |
searching dependent graphs…