good morning!!!!

Skip to content
Snippets Groups Projects
Commit 2f65ddc5 authored by Bas van Kervel's avatar Bas van Kervel
Browse files

jsre: timer bugfix when clearInterval was called from within the callback

parent e9a80518
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,9 @@ loop:
if err != nil {
fmt.Println("js error:", err, arguments)
}
if timer.interval {
_, inreg := registry[timer] // when clearInterval is called from within the callback don't reset it
if timer.interval && inreg {
timer.timer.Reset(timer.duration)
} else {
delete(registry, timer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment