You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2017/08/01 02:54:29 UTC

[02/50] [abbrv] incubator-weex git commit: * [doc] Change the doc of timer.

* [doc] Change the doc of timer.


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/fb2ca329
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/fb2ca329
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/fb2ca329

Branch: refs/heads/dev
Commit: fb2ca329800a7d11d692f1f024ddb3caee4abd6f
Parents: 10a074f
Author: YorkShen <sh...@gmail.com>
Authored: Wed Jul 19 16:17:20 2017 +0800
Committer: YorkShen <sh...@gmail.com>
Committed: Wed Jul 19 16:17:20 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/modules/timer.md | 2 +-
 doc/source/references/modules/timer.md    | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fb2ca329/doc/source/cn/references/modules/timer.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/modules/timer.md b/doc/source/cn/references/modules/timer.md
index 7bc87bb..3ac0c71 100644
--- a/doc/source/cn/references/modules/timer.md
+++ b/doc/source/cn/references/modules/timer.md
@@ -8,7 +8,7 @@ version: 0.10
 Weex Timer可以用来延时启动一个一次性任务或者重复任务。Timer会尽最大努力提供精确的延时,但是延时可能并不精确,延时时间很可能会超过用户期望的时间。实际上,timer仅仅是为了支持HTML5中的polyfill,*不建议*开发者直接使用timer.
 
 ## API
-Timer中延时的单位是毫秒,且延时时间应该为一个非负的int值(int值最大为0x7FFFFF).如果延时时间为负数或者零,timer会将延时时间重置为0,即将该任务马上插入任务队列的尾部。
+Timer中延时的单位是毫秒,且延时时间应该为一个非负的**int**值(int值最大为0x7FFFFF).如果延时时间为零,会将该任务马上插入任务队列的尾部。对于其他非法值,timer的行为未定义。
 
 ### setTimeout(fn, timeout)    
 `setTimeout()`会等待指定的时间,然后执行给出的函数。

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fb2ca329/doc/source/references/modules/timer.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/timer.md b/doc/source/references/modules/timer.md
index 6813d28..9e7da63 100644
--- a/doc/source/references/modules/timer.md
+++ b/doc/source/references/modules/timer.md
@@ -11,8 +11,7 @@ Actually, this module is made for the polyfill of HTML5 timer APIs, developers *
 
 ## API
 
-All timeout or interval in this module are measured in milliseconds.    
-Also, timeout and interval should be a non-negative integer(the max of integer is 0x7FFFFFFF). If timeout or interval is negative, then it will be reset to zero, e.g. the task will be put in the task queue immediately.     
+All timeout or interval in this module are measured in milliseconds. Also, timeout and interval should be a non-negative **integer**(the max of integer is 0x7FFFFFFF). The behavior of invalid value for timeout or interval is undefined.
 
 ### setTimeout(fn, timeout)