setTimeout(fun) with a single argument
Posted
by Elazar Leibovich
on Stack Overflow
See other posts from Stack Overflow
or by Elazar Leibovich
Published on 2010-04-27T17:48:22Z
Indexed on
2010/04/27
17:53 UTC
Read the original article
Hit count: 396
JavaScript
|settimeout
The HTML5
specifications states that setTimeout
can be run without the additional "timeout" argument which is supposed to say after how many milliseconds will the function "handler" be scheduled.
handle = window . setTimeout( handler [, timeout [, arguments ] ] )
Schedules a timeout to run handler after timeout milliseconds. Any arguments are passed straight through to the handler.
However, I failed to find anywhere which explains what happens when no "timeout" time period is set.
An example usage is, the animation implementation int the Raphael library.
animationElements[length] && win.setTimeout(animation);
© Stack Overflow or respective owner