I’m working on an ajax web appliation which contains many running timeouts and intervals. And now I need to clear all running timeouts and intervals sometimes. Is there a simple way to stop everything without need to store every timeout and interval ID and iterate through them and clear them?
I’m working on an ajax web appliation which contains many running timeouts and intervals.
Share
Updated answer after reading the duplicate I closed this question with –
It works and tested in Chrome on OSX
NOTE: Looked at window objects that had a typeof number – funnily enough IE assigns an 8 digit number, FF a single digit starting with 2