search for: currentlyexecut

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

2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
...only one I found linked to a dead blog. I wondered if anyone would look over the code, maybe it 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(...