Reply to comment

Re: prevent stack overflow

This is clever, but how is it different from just calling setTimeout directly? It seems like it even introduces some extra overhead (since you creating a new Timer object, registering an event handler, having your event handler called, calling the original function).

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options