Solving the Phantom Interval Problem In Javascript

If you’ve been working in javascript for any length of time you’ve run into the phantom interval problem. Essentially, you’ll have a button that sets an interval and double-clicking that button creates a phantom interval that you can’t clear or control. Here’s an article on how to solve the problem (spoiler: always clear the interval before you set it).

http://www.sitecrafting.com/blog/multiple-interval-javascript-problem

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>