MCPcopy Create free account
hub / github.com/melonjs/melonJS / clearInterval

Method clearInterval

packages/melonjs/src/system/timer.ts:202–208  ·  view source on GitHub ↗

* cancels the timed, repeating action which was previously established by a call to setInterval(). * @param intervalID - ID of the interval to be cleared

(intervalID: number)

Source from the content-addressed store, hash-verified

200 * @param intervalID - ID of the interval to be cleared
201 */
202 clearInterval(intervalID: number) {
203 if (intervalID > 0) {
204 defer(() => {
205 this.clearTimer(intervalID);
206 }, this);
207 }
208 }
209
210 /**
211 * Return the current timestamp in milliseconds <br>

Callers 1

onDeactivateEventMethod · 0.80

Calls 2

clearTimerMethod · 0.95
deferFunction · 0.90

Tested by

no test coverage detected