From d493b8420304c00a5d614610b8589427a32baa5e Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Tue, 19 Aug 2008 08:22:32 +0000 Subject: Trigger it_boot retry if evaluated script has (syntax)errors --- itjs/boot.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); } -- cgit v1.2.3