Displaying 1 result from an estimated 1 matches for "pausedat".
Did you mean:
paused
2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
...t
will make its way into 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;...