Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #21457
| From | Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Draw/animation fail to stop |
| Date | 2013-09-28 19:16 +0100 |
| Organization | Home |
| Message-ID | <HhJ3TcGS0xRSFwoz@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | (4 earlier) <2797316.uecmfydTqv@PointedEars.de> <8U$p+xLOUHQSFwFU@invalid.uk.co.demon.merlyn.invalid> <6525778.9mJ5Jx9J8M@PointedEars.de> <VctjcJ3FzwQSFwQp@invalid.uk.co.demon.merlyn.invalid> <2479854.SYyhZTWsNG@PointedEars.de> |
In comp.lang.javascript message <2479854.SYyhZTWsNG@PointedEars.de>,
Thu, 26 Sep 2013 00:55:41, Thomas 'PointedEars' Lahn
<PointedEars@web.de> posted:
>Dr J R Stockton wrote:
>
>> […] Thomas 'PointedEars' Lahn […] posted:
>>> Dr J R Stockton wrote:
>>>> Thomas 'PointedEars' Lahn <PointedEars@web.de> posted:
>>>>> var t = null;
>>>>> var f = function () {
>>>>> if (t !== null)
>>>>> {
>>>>> window.clearTimeout(t);
>>>>> t = null;
>>>>> }
>>>>>
>>>>> /* do something every 50 milliseconds */
>>>>>
>>>>> t = window.setTimeout(f, 50);
>>>>> };
>>>>>
>>>>> f();
>>>>
>>>> The comment is incorrect.
>>> The comment is a placeholder, therefore correct.
>>
>> Nonsense. The comment expresses a false meaning, for most values of
>> "something".
>
>Would inserting “approximately” satisfy you, or which part of
>“placeholder”
>did you not understand?
None.
Consider, as an extreme example, replacing the placeholder with
while (new Date()%1000 < 900) ; // .
Consider, as a more practical example, replacing the placeholder with a
calculation that takes 200ms.
Users of setTimeout should remember that it calls for a delay of the
stated number of milliseconds from the execution of setTimeout until the
invocation of the first argument; and that the actual delay will be
longer if the system is then busy.
>> YWIII.
>
>WTF? But here we go again. You have been spotted arguing against the
>hacker culture, but you are making use of its acronyms and even inventing
>new ones in the same way. I think the correct term for that is
>“hypocrite”.
OAF.
--
(c) John Stockton, Surrey, UK. ¬@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Draw/animation fail to stop jonas.thornvall@gmail.com - 2013-09-21 06:33 -0700
Re: Draw/animation fail to stop "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-09-21 15:52 +0200
Re: Draw/animation fail to stop jonas.thornvall@gmail.com - 2013-09-21 20:14 -0700
Re: Draw/animation fail to stop Stefan Weiss <krewecherl@gmail.com> - 2013-09-22 06:47 +0200
Re: Draw/animation fail to stop JJ <duh@nah.meh> - 2013-09-22 13:05 +0700
Re: Draw/animation fail to stop "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-09-22 09:10 +0200
Re: Draw/animation fail to stop jonas.thornvall@gmail.com - 2013-09-22 01:30 -0700
Re: Draw/animation fail to stop jonas.thornvall@gmail.com - 2013-09-22 01:40 -0700
Re: Draw/animation fail to stop Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-09-22 12:42 +0200
Re: Draw/animation fail to stop Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-09-23 18:06 +0100
Re: Draw/animation fail to stop Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-09-24 01:00 +0200
Re: Draw/animation fail to stop Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-09-25 17:18 +0100
Re: Draw/animation fail to stop Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-09-26 00:55 +0200
Re: Draw/animation fail to stop Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-09-25 22:33 -0300
Re: Draw/animation fail to stop Andrew Poulos <ap_prog@hotmail.com> - 2013-09-26 15:21 +1000
Re: Draw/animation fail to stop Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-09-28 19:16 +0100
Re: Draw/animation fail to stop Christoph Michael Becker <cmbecker69@arcor.de> - 2013-09-22 14:14 +0200
Re: Draw/animation fail to stop Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-09-22 15:06 +0200
Re: Draw/animation fail to stop Ken <usenet-so@abdiassoftware.com> - 2013-09-22 13:44 -0500
Re: Draw/animation fail to stop Ken <usenet-so@abdiassoftware.com> - 2013-09-22 13:50 -0500
csiph-web