# HG changeset patch # User Yaroslav Zhuravlev # Date 1596731901 -3600 # Node ID fafb7767c1284f31423331b368dda55b6b80801b # Parent 67fd664e26127a18653b0cf545642b4af0a0653d Restructured njs Reference. diff --git a/xml/en/docs/njs/reference.xml b/xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@
+ rev="49">
@@ -685,6 +685,51 @@ 4
+
+ + + + + +clearTimeout(timeout) + +Cancels a timeout object +created by setTimeout(). + + +setTimeout(function, +ms[, arg1, argN]) + +Calls a function +after a specified number of milliseconds. +One or more optional arguments +can be passed to the specified function. +Returns a timeout object. + +function handler(v) +{ + // ... +} + +t = setTimeout(handler, 12); + +// ... + +clearTimeout(t); + + + + + + +
+ + + + +
+ +
@@ -795,45 +840,6 @@ undefined
-
- - - - - -clearTimeout(timeout) - -Cancels a timeout object -created by setTimeout(). - - -setTimeout(function, -ms[, arg1, argN]) - -Calls a function -after a specified number of milliseconds. -One or more optional arguments -can be passed to the specified function. -Returns a timeout object. - -function handler(v) -{ - // ... -} - -t = setTimeout(handler, 12); - -// ... - -clearTimeout(t); - - - - - - -
-