fix to enables the startup loader to continue if dynamically loaded

This commit is contained in:
Blair Duncan committed 2012-04-10 16:55:42 -04:00
1 parent f6bdf06e45
commit 13fbfb6cac
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ var documentLoaded = NO;
function afterDocumentLoad(/*Function*/ aFunction)
{
if (documentLoaded)
if (documentLoaded || document.readyState === "complete")
return aFunction();
if (window.addEventListener)