Repository: incubator-weex
Updated Branches:
  refs/heads/0.15-dev 10a074fd5 -> fb2ca3298


* [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/0.15-dev
Commit: fb2ca329800a7d11d692f1f024ddb3caee4abd6f
Parents: 10a074f
Author: YorkShen <shenyua...@gmail.com>
Authored: Wed Jul 19 16:17:20 2017 +0800
Committer: YorkShen <shenyua...@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)    
 

Reply via email to