diff --git a/Objective-J/DebugOptions.js b/Objective-J/DebugOptions.js index 66083b0d4..1292282e3 100644 --- a/Objective-J/DebugOptions.js +++ b/Objective-J/DebugOptions.js @@ -1,7 +1,6 @@ -#define DEPENDENCY_LOGGING 1 -#define STATIC_RESOURCE_LOGGING 1 -#define EXECUTION_LOGGING 1 +#define DEPENDENCY_LOGGING 0 +#define EXECUTION_LOGGING 0 #if BROWSER #define CPLog console.log diff --git a/Objective-J/Executable.js b/Objective-J/Executable.js index d838db98e..7f34fe659 100644 --- a/Objective-J/Executable.js +++ b/Objective-J/Executable.js @@ -247,7 +247,7 @@ Executable.prototype.loadFileDependencies = function() } CPLog("DEPENDENCY: Ended"); -#end +#endif for (var executablePath in foundExecutablePaths) if (hasOwnProperty.apply(foundExecutablePaths, [executablePath])) diff --git a/Objective-J/StaticResourceNode.js b/Objective-J/StaticResourceNode.js index 72af07965..0f4c7fb33 100644 --- a/Objective-J/StaticResourceNode.js +++ b/Objective-J/StaticResourceNode.js @@ -377,9 +377,9 @@ StaticResourceNode.resolveStandardNodeAtPath = function(/*String*/ aPath, /*Func resolveStandardNodeAtPath = function(/*String*/ aPath, /*int*/ anIndex) { var searchPath = FILE.absolute(FILE.join(includePaths[anIndex], FILE.normal(aPath))); - if (searchPath.indexOf("CPObject.j") !== -1) CPLog("WILL SEARCH IN: " + searchPath); + rootNode.resolveSubPath(searchPath, StaticResourceNode.FileType, function(/*StaticResourceNode*/ aStaticResourceNode) - {if (searchPath.indexOf("CPObject.j") !== -1) CPLog("FOUND...: " + aStaticResourceNode); + { if (!aStaticResourceNode) { if (anIndex + 1< includePaths.length)