diff options
-rw-r--r-- | itjs/boot.js | 11 |
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); } |