Permalink
Browse files

build artifacts

  • Loading branch information...
1 parent 89acc8d commit 5d1943b240a34e83102ebf0fc90345b9c1dce3fb @smparkes committed Oct 28, 2009
Showing with 12 additions and 6 deletions.
  1. +6 −3 dist/env.js
  2. +6 −3 dist/env.rhino.js
View
@@ -8452,17 +8452,19 @@ window.setTimeout = function(fn, time){
eval(fn);
} catch (e) {
$env.error(e);
+ } finally {
+ window.clearInterval(num);
}
- window.clearInterval(num);
};
} else {
tfn = function() {
try {
fn();
} catch (e) {
$env.error(e);
+ } finally {
+ window.clearInterval(num);
}
- window.clearInterval(num);
};
}
$debug("Creating timer number "+num);
@@ -8536,8 +8538,9 @@ window.$wait = $env.wait = $env.wait || function(wait) {
var f = earliest.fn;
try {
earliest.running = true;
- var h = Date.now();
f();
+ } catch (e) {
+ $env.error(e);
} finally {
earliest.running = false;
}
View
@@ -9072,17 +9072,19 @@ window.setTimeout = function(fn, time){
eval(fn);
} catch (e) {
$env.error(e);
+ } finally {
+ window.clearInterval(num);
}
- window.clearInterval(num);
};
} else {
tfn = function() {
try {
fn();
} catch (e) {
$env.error(e);
+ } finally {
+ window.clearInterval(num);
}
- window.clearInterval(num);
};
}
$debug("Creating timer number "+num);
@@ -9156,8 +9158,9 @@ window.$wait = $env.wait = $env.wait || function(wait) {
var f = earliest.fn;
try {
earliest.running = true;
- var h = Date.now();
f();
+ } catch (e) {
+ $env.error(e);
} finally {
earliest.running = false;
}

0 comments on commit 5d1943b

Please sign in to comment.