File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 3
3
Since JavaScript is asynchronous, it is possible to schedule the execution of a
4
4
function using the ` setTimeout ` and ` setInterval ` functions.
5
5
6
- > ** Note:** Timeouts are ** not** part of the ECMAScript Standard. They are
7
- > implemented as part of the [ DOM] [ 1 ] .
6
+ > ** Note:** Timeouts are ** not** part of the ECMAScript standard. They were
7
+ > implemented in [ BOM, or DOM Level 0] [ 1 ] , which are never defined nor
8
+ > documented formally. No recommended specification has been published so far,
9
+ > however, they are currently being standardized by [ HTML5] [ 2 ] . Due to this
10
+ > nature, the implementation may vary from browsers and engines.
8
11
9
12
function foo() {}
10
13
var id = setTimeout(foo, 1000); // returns a Number > 0
@@ -163,5 +166,5 @@ be passed that then takes care of the actual call.
163
166
Furthermore, the use of ` setInterval ` should be avoided because its scheduler is not
164
167
blocked by executing JavaScript.
165
168
166
- [ 1 ] : http://en.wikipedia.org/wiki/Document_Object_Model " Document Object Model "
167
-
169
+ [ 1 ] : http://www.nczonline.net/blog/2009/09/29/web-definitions-dom-ajax-and-more/ " Web definitions: DOM, Ajax, and more "
170
+ [ 2 ] : http://www.w3.org/TR/2014/WD-html5-20140617/webappapis.html#timers " 6 Web application APIs - HTML5 "
You can’t perform that action at this time.
0 commit comments