new Timer(initValue)
Utility class to simplify use of timers created by setTimeout.
Parameters:
Name |
Type |
Argument |
Description |
initValue |
Object
|
<optional>
|
Specifies initial property values. Keys are property names, their values are values of corresponding properties.
The following keys (properties) can be specified:
Name |
Type |
Description |
action |
Function |
Related action that should be executed after time period is elapsed. |
active |
Boolean |
Whether timer usage should be immediately started. |
period |
Integer |
Time period in milliseconds that is used to schedule related action execution. |
recurrent |
Boolean |
Whether related action should be executed repeatedly. |
|
- Source: