Is there a way to check if a var is using setInterval() ?

Posted by chadley on Stack Overflow See other posts from Stack Overflow or by chadley
Published on 2010-04-20T22:26:06Z Indexed on 2010/04/20 22:33 UTC
Read the original article Hit count: 176

Filed under:

For instance, I am setting an interval like

timer = setInterval(fncName, 1000);

and if i go and do

clearInterval(timer);

it does clear the interval but is there a way to check that it cleared the interval? I've tried getting the value of it while it has an interval and when it doesn't but they both just seem to be numbers.

© Stack Overflow or respective owner

Related posts about JavaScript