search for: resheduledjob

Displaying 1 result from an estimated 1 matches for "resheduledjob".

2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
...return this.frequency - (this.pausedAt - this.accumTimePaused - this.lastExec); }else if(this.timer==null){ return null; }else{ return this.frequency - (this.now() - this.accumTimePaused - this.lastExec); } }, restart: function(){ if (this.paused){ if(this.resheduledJob>0){clearTimeout(this.resheduledJob)} this.resheduledJob = setTimeout(this.reJobCallback.bind(this), this.timeLeft()*1000); this.accumTimePaused += this.now() - this.pausedAt; }else if(this.timer == null){ this.registerCallback(); } this.pausedAt = null; this.p...