Respect previously set OBJJ_MAIN_FILE

This commit is contained in:
Tom Robinson committed 2010-02-09 11:46:25 -08:00
1 parent f89c2e0ba9
commit 035d772a4a
1 file changed
+3 -2
+3 -2
View File
@@ -15,9 +15,10 @@ rootNode.resolveSubPath(cwd, StaticResourceNode.DirectoryType, function(cwdNode)
for (; index < count; ++index)
cwdNode.nodeAtSubPath(FILE.normal(includePaths[index]), YES);
#ifdef BROWSER
OBJJ_MAIN_FILE = "main.j";
if (typeof OBJJ_MAIN_FILE === "undefined")
OBJJ_MAIN_FILE = "main.j";
fileImporterForPath(cwd)("main.j", YES, function()
fileImporterForPath(cwd)(OBJJ_MAIN_FILE, YES, function()
{
afterDocumentLoad(main);
});