Class: Timer

Timer

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:

Members

<protected> _period

Time period in milliseconds. A related action will be executed when the period is elapsed.
Author:
  • Denis Sikuler
Source:

Methods

dispose()

Free resources that are allocated for object.
Source: