Displaying 1 result from an estimated 1 matches for "accumtimepaus".
Did you mean:
accumtimepaused
2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
...o the official release.
var PeriodicalExecuter = Class.create({
initialize: function(callback, frequency) {
this.callback = callback;
this.frequency = frequency;
this.currentlyExecuting = false;
this.lastExec = this.now();
this.paused = false;
this.pausedAt = 0;
this.accumTimePaused = 0;
this.registerCallback();
},
registerCallback: function() {
this.timer = setInterval(this.onTimerEvent.bind(this),
this.frequency * 1000);
},
execute: function() {
this.callback(this);
},
pause: function(){
if (this.paused) return;
this.stop();
this.paus...