Class R.lang.MultiTimeout
Extends
R.lang.Timeout.
An extension of R.lang.Timeout that will repeat the specified number of times before
destroying itself. The callback will be triggered with the
repetition number as the only argument. Within the callback, this
refers to the Timer object itself.
Defined in: multitimeout.js.
Constructor Attributes | Constructor Name and Description |
---|---|
R.lang.MultiTimeout(name, reps, interval, callback)
Creat a multi-timeout triggering timer
|
Method Attributes | Method Name and Description |
---|---|
Get the class name of this object
|
- Methods borrowed from class R.lang.Timeout:
- cancel, destroy, restart
- Methods borrowed from class R.lang.AbstractTimer:
- getCallback, getInterval, getTimer, isRunning, pause, release, setCallback, setInterval, setTimer
- Methods borrowed from class R.engine.BaseObject:
- addEvent, addEvents, getElement, jQ, removeEvent, setElement, triggerEvent, update
- Methods borrowed from class R.engine.PooledObject:
- clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.lang.MultiTimeout(name, reps, interval, callback)
Creat a multi-timeout triggering timer
- Parameters:
- name
- {String} The name of the timer
- reps
- {Number} The number of repetitions to restart the timer automatically
- interval
- {Number} The interval for the timer, in milliseconds
- callback
- {Function} The function to call when the interval is reached
Method Detail
{String}
getClassName()
Get the class name of this object
- Returns:
- {String} "R.lang.MultiTimeout"