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

Method clearTimer

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

* clear Timers * @ignore

(timerId: number)

Source from the content-addressed store, hash-verified

265 * @ignore
266 */
267 clearTimer(timerId: number) {
268 for (let i = 0; i < this.timers.length; i++) {
269 if (this.timers[i].timerId === timerId) {
270 this.timers.splice(i, 1);
271 break;
272 }
273 }
274 }
275
276 /**
277 * update timers

Callers 12

clearTimeoutMethod · 0.95
clearIntervalMethod · 0.95
updateTimersMethod · 0.95
clickedMethod · 0.80
releaseMethod · 0.80
holdMethod · 0.80
onDeactivateEventMethod · 0.80
clickedMethod · 0.80
releaseMethod · 0.80
holdMethod · 0.80
onDeactivateEventMethod · 0.80
timer.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected