Skip to content

Commit

Permalink
Swapped "$w." for "window." in window/timer.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
gleneivey committed Nov 15, 2009
1 parent 9376070 commit 4629f67
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions dist/env.js
Expand Up @@ -8569,7 +8569,7 @@ var convert_time = function(time) {
return time;
}

window.setTimeout = function(fn, time){
$w.setTimeout = function(fn, time){
var num;
time = convert_time(time);
$timers.lock(function(){
Expand All @@ -8582,7 +8582,7 @@ window.setTimeout = function(fn, time){
} catch (e) {
$env.error(e);
} finally {
window.clearInterval(num);
$w.clearInterval(num);
}
};
} else {
Expand All @@ -8592,7 +8592,7 @@ window.setTimeout = function(fn, time){
} catch (e) {
$env.error(e);
} finally {
window.clearInterval(num);
$w.clearInterval(num);
}
};
}
Expand All @@ -8603,7 +8603,7 @@ window.setTimeout = function(fn, time){
return num;
};

window.setInterval = function(fn, time){
$w.setInterval = function(fn, time){
time = convert_time(time);
if ( time < 10 ) {
time = 10;
Expand All @@ -8624,7 +8624,7 @@ window.setInterval = function(fn, time){
return num;
};

window.clearInterval = window.clearTimeout = function(num){
$w.clearInterval = $w.clearTimeout = function(num){
//$log("clearing interval "+num);
$timers.lock(function(){
if ( $timers[num] ) {
Expand All @@ -8642,7 +8642,7 @@ window.clearInterval = window.clearTimeout = function(num){

// FIX: make a priority queue ...

window.$wait = $env.wait = $env.wait || function(wait) {
$w.$wait = $env.wait = $env.wait || function(wait) {
var delta_wait;
if (wait < 0) {
delta_wait = -wait;
Expand Down
12 changes: 6 additions & 6 deletions dist/env.rhino.js
Expand Up @@ -9199,7 +9199,7 @@ var convert_time = function(time) {
return time;
}

window.setTimeout = function(fn, time){
$w.setTimeout = function(fn, time){
var num;
time = convert_time(time);
$timers.lock(function(){
Expand All @@ -9212,7 +9212,7 @@ window.setTimeout = function(fn, time){
} catch (e) {
$env.error(e);
} finally {
window.clearInterval(num);
$w.clearInterval(num);
}
};
} else {
Expand All @@ -9222,7 +9222,7 @@ window.setTimeout = function(fn, time){
} catch (e) {
$env.error(e);
} finally {
window.clearInterval(num);
$w.clearInterval(num);
}
};
}
Expand All @@ -9233,7 +9233,7 @@ window.setTimeout = function(fn, time){
return num;
};

window.setInterval = function(fn, time){
$w.setInterval = function(fn, time){
time = convert_time(time);
if ( time < 10 ) {
time = 10;
Expand All @@ -9254,7 +9254,7 @@ window.setInterval = function(fn, time){
return num;
};

window.clearInterval = window.clearTimeout = function(num){
$w.clearInterval = $w.clearTimeout = function(num){
//$log("clearing interval "+num);
$timers.lock(function(){
if ( $timers[num] ) {
Expand All @@ -9272,7 +9272,7 @@ window.clearInterval = window.clearTimeout = function(num){

// FIX: make a priority queue ...

window.$wait = $env.wait = $env.wait || function(wait) {
$w.$wait = $env.wait = $env.wait || function(wait) {
var delta_wait;
if (wait < 0) {
delta_wait = -wait;
Expand Down
12 changes: 6 additions & 6 deletions src/window/timer.js
Expand Up @@ -33,7 +33,7 @@ var convert_time = function(time) {
return time;
}

window.setTimeout = function(fn, time){
$w.setTimeout = function(fn, time){
var num;
time = convert_time(time);
$timers.lock(function(){
Expand All @@ -46,7 +46,7 @@ window.setTimeout = function(fn, time){
} catch (e) {
$env.error(e);
} finally {
window.clearInterval(num);
$w.clearInterval(num);
}
};
} else {
Expand All @@ -56,7 +56,7 @@ window.setTimeout = function(fn, time){
} catch (e) {
$env.error(e);
} finally {
window.clearInterval(num);
$w.clearInterval(num);
}
};
}
Expand All @@ -67,7 +67,7 @@ window.setTimeout = function(fn, time){
return num;
};

window.setInterval = function(fn, time){
$w.setInterval = function(fn, time){
time = convert_time(time);
if ( time < 10 ) {
time = 10;
Expand All @@ -88,7 +88,7 @@ window.setInterval = function(fn, time){
return num;
};

window.clearInterval = window.clearTimeout = function(num){
$w.clearInterval = $w.clearTimeout = function(num){
//$log("clearing interval "+num);
$timers.lock(function(){
if ( $timers[num] ) {
Expand All @@ -106,7 +106,7 @@ window.clearInterval = window.clearTimeout = function(num){

// FIX: make a priority queue ...

window.$wait = $env.wait = $env.wait || function(wait) {
$w.$wait = $env.wait = $env.wait || function(wait) {
var delta_wait;
if (wait < 0) {
delta_wait = -wait;
Expand Down

0 comments on commit 4629f67

Please sign in to comment.