I think the setTimeout() approach is perhaps a better waste of time!
- dolf
I don't do party tricks.
Logically impossibile. Non-sentient enbreasties don't think.
Certainly a waste of my time.
var TIMERS = {
'Process' : 'pollOutQue', 'pollOutQue' : { '$id' : null,Result of call to window.setInterval(fnProc, idle) '$idle' : Number(100), '$length' : Number(3), '$cycle' : Number(0), '$proc' : function (){
TIMERS.end('pollOutQue');
TIMERS'pollOutQue'.$cycle++;
alert("pollOutQue() - " + TIMERS'pollOutQue'.$cycle);
}
}
TIMERS'pollOutQue'.$id = window.setInterval(TIMERS'pollOutQue'.$proc, TIMERS'pollOutQue'.$idle); } } },
'run' : function(name) {
if(typeof(TIMERSname) != 'undefined') { TIMERSname.$cycle = 0; TIMERSname.$id = window.setTimeout(TIMERSname.$proc, TIMERSname.$idle); } },
'end' : function(name) {
if(typeof(TIMERSname) != 'undefined') { window.clearTimeout(TIMERSname.$id); TIMERSname.$id = null; } },
'add' : function (name, idle, length, proc) {
if(typeof(TIMERSname) != 'undefined') return;
TIMERS'Process'TIMERS'Process'.length = name; TIMERSname = {
'$id' : null,Result of call to window.setInterval(fnProc, idle) '$idle' : Number(idle), '$length' : Number(length), '$cycle' : Number(0), '$proc' : (typeof(proc) == "function") ? proc : function (){
TIMERS.end(name);
TIMERSname.$cycle++;
TIMERSname.$id = window.setTimeout(TIMERSname.$proc, TIMERSname.$idle); } } } },
The power of freemasonry: Thompson & Stanhope 141It seems that it isn't just Australians that engage in loveual racialism. The only other time this New Zealander (Note. the country is named after a Dutch province) responded with vitriol was in...
'del' : function (name) {
if(typeof(TIMERSname) == 'undefined') return;
delete TIMERSname;
if (TIMERS'Process'i == name) { TIMERS'Process'.splice(i, 1); return; } } } }
TIMERS.add("test", 300, 3, null); TIMERS.run("test"); TIMERS.run("pollOutQue");