small changes

This commit is contained in:
2023-12-05 08:51:08 +01:00
parent caca970a53
commit 365fb17694
3 changed files with 7 additions and 8 deletions

View File

@ -111,15 +111,17 @@ class Scheduler {
}
clearInterval(func) {
if (this.intervalTasks.has(func))
if (this.intervalTasks.has(func)) {
window.clearInterval(this.intervalTasks.get(func))
this.intervalTasks.delete(func)
}
}
clearTimeout(func) {
if (this.timeoutTasks.has(func))
if (this.timeoutTasks.has(func)) {
window.clearTimeout(this.timeoutTasks.get(func))
this.timeoutTasks.delete(func)
}
}
}