summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2008-08-19 08:22:32 +0000
committerThomas BrĂ¼derli2008-08-19 08:22:32 +0000
commitd493b8420304c00a5d614610b8589427a32baa5e (patch)
tree65f0839324733de292edaff0e116da595fd00e86
parent0e055cd6319374f9b7df5cc4b762aded7c5b52d2 (diff)
downloaditools-d493b8420304c00a5d614610b8589427a32baa5e.tar.gz
itools-d493b8420304c00a5d614610b8589427a32baa5e.tar.bz2
itools-d493b8420304c00a5d614610b8589427a32baa5e.zip
Trigger it_boot retry if evaluated script has (syntax)errors
-rw-r--r--itjs/boot.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index b0abe93..cab563f 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -21,7 +21,16 @@ function it_catcherr(msg, url, line)
}
if (typeof it_boot.sequence != 'undefined')
+ {
+ // trigger it_boot retry if error occured while evaluating loaded script
+ if (it_boot.sequence == 'ble' && it_boot.file)
+ {
+ it_boot(it_boot.file, true);
+ return true;
+ }
+
stacktrace += "it_boot=" + it_boot.sequence + ";";
+ }
if (typeof window.it_loader != 'undefined' && it_loader.sequence)
stacktrace += "it_loader=" + it_loader.sequence + ";";
@@ -161,4 +170,6 @@ function it_boot(file, isretry)
else
window.it_domtimer = window.setTimeout("it_boot('" + file + "')" , 42);
}
+
+ window.setTimeout(function(){ it_boot.sequence=''; }, 10);
}