<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/setTimeout</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 23:31:30 GMT</pubDate>
<item>
<title>(JavaScript) Using params with setTimeOut - coprolit</title>
<link>http://snipplr.com/view/50827/using-params-with-settimeout/</link>
<description><![CDATA[ <p>With setTimeOut a reference to a function object cannot provide parameters for the scheduled execution of that function.
We can instead use a closure to provide parameters for the execution of a function prior to the execution of that function.</p> ]]></description>
<pubDate>Sat, 19 Mar 2011 01:38:02 GMT</pubDate>
<guid>http://snipplr.com/view/50827/using-params-with-settimeout/</guid>
</item>
<item>
<title>(JavaScript) Setting a timer in javascript - fengelz</title>
<link>http://snipplr.com/view/48277/setting-a-timer-in-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Feb 2011 22:00:26 GMT</pubDate>
<guid>http://snipplr.com/view/48277/setting-a-timer-in-javascript/</guid>
</item>
<item>
<title>(JavaScript) Settimeout with closure in for loop - mjsiemer</title>
<link>http://snipplr.com/view/39681/settimeout-with-closure-in-for-loop/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 30 Aug 2010 06:06:37 GMT</pubDate>
<guid>http://snipplr.com/view/39681/settimeout-with-closure-in-for-loop/</guid>
</item>
<item>
<title>(JavaScript) JavaScript’s setTimeout and how to use it with your methods - eden159</title>
<link>http://snipplr.com/view/10999/javascripts-settimeout-and-how-to-use-it-with-your-methods/</link>
<description><![CDATA[ <p>Everything works as expected for the setTimeout() function until you try to call a method inside your ‘class’ (there are no real classes in JavaScript). Something like this won’t work:

setTimeout(this.methodToCall, time);
Passing a string representation instead of reference doesn’t work either.

So here is the simple solution:</p> ]]></description>
<pubDate>Thu, 08 Jan 2009 07:18:22 GMT</pubDate>
<guid>http://snipplr.com/view/10999/javascripts-settimeout-and-how-to-use-it-with-your-methods/</guid>
</item>
</channel>
</rss>