Displaying 1 result from an estimated 1 matches for "rejobcallback".
2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
...is.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.paused = false;
},
reJobCallback : function(){
this.onTimerEvent();
this.registerCallba...