Skip to content

Commit

Permalink
Fixed problem in allocating slots within $timers[] array, causing only
Browse files Browse the repository at this point in the history
every-other array slot to be used.
  • Loading branch information
gleneivey committed Jul 22, 2009
1 parent 301375c commit ea75da7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/env.js
Expand Up @@ -8772,7 +8772,7 @@ $debug("Initializing Window Timer.");
var $timers = [];

window.setTimeout = function(fn, time){
var num = $timers.length+1;
var num = $timers.length;
var tfn;

if (typeof fn == 'string') {
Expand All @@ -8793,7 +8793,7 @@ window.setTimeout = function(fn, time){
};

window.setInterval = function(fn, time){
var num = $timers.length+1;
var num = $timers.length;

if (typeof fn == 'string') {
var fnstr = fn;
Expand Down
4 changes: 2 additions & 2 deletions dist/env.rhino.js
Expand Up @@ -9209,7 +9209,7 @@ $debug("Initializing Window Timer.");
var $timers = [];

window.setTimeout = function(fn, time){
var num = $timers.length+1;
var num = $timers.length;
var tfn;

if (typeof fn == 'string') {
Expand All @@ -9230,7 +9230,7 @@ window.setTimeout = function(fn, time){
};

window.setInterval = function(fn, time){
var num = $timers.length+1;
var num = $timers.length;

if (typeof fn == 'string') {
var fnstr = fn;
Expand Down
4 changes: 2 additions & 2 deletions src/window/timer.js
Expand Up @@ -9,7 +9,7 @@ $debug("Initializing Window Timer.");
var $timers = [];

window.setTimeout = function(fn, time){
var num = $timers.length+1;
var num = $timers.length;
var tfn;

if (typeof fn == 'string') {
Expand All @@ -30,7 +30,7 @@ window.setTimeout = function(fn, time){
};

window.setInterval = function(fn, time){
var num = $timers.length+1;
var num = $timers.length;

if (typeof fn == 'string') {
var fnstr = fn;
Expand Down

0 comments on commit ea75da7

Please sign in to comment.