From 035d772a4a5652b4b9578e2310fa4fc4ee824864 Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Tue, 9 Feb 2010 11:46:25 -0800 Subject: [PATCH] Respect previously set OBJJ_MAIN_FILE --- Objective-J/Bootstrap.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Objective-J/Bootstrap.js b/Objective-J/Bootstrap.js index bf3bcace0..f84581122 100644 --- a/Objective-J/Bootstrap.js +++ b/Objective-J/Bootstrap.js @@ -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); });