Skip to content

Commit 0712172

Browse files
committed
Added an example of MSIE while explaining the behavior of setTimeout parameters.
1 parent 60e491e commit 0712172

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/en/other/timeouts.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,11 @@ function that will get called by either of the timeout functions.
151151
foo(a, b, c);
152152
}, 1000)
153153

154-
> **Note:** While it is also possible to use the syntax
155-
> `setTimeout(foo, 1000, a, b, c)`, it is not recommended, as its use may lead
156-
> to subtle errors when used with [methods](#function.this).
154+
> **Note:** While it is also possible to use `setTimeout(foo, 1000, a, b, c)`
155+
> syntax, it is not recommended, as its use may lead
156+
> to subtle errors when used with [methods](#function.this).
157+
> Furthermore, the syntax might not work in some JavaScript implementations.
158+
> For example, Microsoft's Internet Explorer [does **not** pass the arguments directly to the callback](3).
157159
158160
### In Conclusion
159161

@@ -167,3 +169,4 @@ blocked by executing JavaScript.
167169

168170
[1]: http://www.nczonline.net/blog/2009/09/29/web-definitions-dom-ajax-and-more/ "Web definitions: DOM, Ajax, and more"
169171
[2]: http://www.w3.org/TR/2014/WD-html5-20140617/webappapis.html#timers "6 Web application APIs - HTML5"
172+
[3]: http://msdn.microsoft.com/en-us/library/ie/ms536753(v=vs.85).aspx "setTimeout method (Internet Explorer)"

0 commit comments

Comments
 (0)