codeshow icon indicating copy to clipboard operation
codeshow copied to clipboard

canvasball - setInterval is still working after going back to main page

Open bilberry71 opened this issue 10 years ago • 0 comments

There is no unload event that would stop running calculation by clearInterval(interval); . When you set breakpoint you will see that it runs continuously. When you go back and forth then there will be two instances calculating position.

bilberry71 avatar Sep 12 '15 20:09 bilberry71