readme updated

This commit is contained in:
Vladimir Enchev
2014-05-10 16:37:02 +03:00
parent db1681a88e
commit 716e482e20
2 changed files with 19 additions and 0 deletions

View File

@@ -208,6 +208,9 @@
<ItemGroup>
<Content Include="globals\Readme.md" />
</ItemGroup>
<ItemGroup>
<Content Include="timer\Readme.md" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)' == 'iOS'">
<TypeScriptModuleKind>commonjs</TypeScriptModuleKind>
<TypeScriptRemoveComments>True</TypeScriptRemoveComments>

View File

@@ -13,4 +13,20 @@
var intervalId = setInterval(function(){ log("Test"); }, 2000);
...
clearInterval(intervalId)
```
OR
```js
var timer = require("timer");
timer.setTimeout(function(){ log("Test"); }, 2000);
var id = timer.setTimeout(function(){ log("Test"); }, 2000);
...
timer.clearTimeout(id);
timer.setInterval(function(){ log("Test"); }, 2000);
var intervalId = timer.setInterval(function(){ log("Test"); }, 2000);
...
timer.clearInterval(intervalId)
```