Correct a use of global. to be GLOBAL_NAMESPACE. at least until we have a better solution.

This commit is contained in:
Ross Boucher committed 2010-02-17 19:31:11 -08:00
1 parent 3e5bdec033
commit 1961829414
2 files changed
+5 -7

No files matched your search

+2 -6
View File
@@ -102,10 +102,6 @@ function decompile(/*String*/ aString, /*String*/ aPath)
return new Executable(code, dependencies, aPath);
}
/*
global.objj_executeFile = executeFile;
global.objj_importFile = importFile;
global.objj_import = importFile;
*/
exports.FileExecutable = FileExecutable;
exports.FileExecutablesForPaths = FileExecutablesForPaths;
exports.FileExecutablesForPaths = FileExecutablesForPaths;
+3 -1
View File
@@ -373,9 +373,11 @@ StaticResource.resolveStandardNodeAtPath = function(/*String*/ aPath, /*Function
resolveStandardNodeAtPath(aPath, 0);
}
var GLOBAL_NAMESPACE = GLOBAL_NAMESPACE || global;
exports.includePaths = function()
{
return global.OBJJ_INCLUDE_PATHS || ["Frameworks", "Frameworks/Debug"];
return GLOBAL_NAMESPACE.OBJJ_INCLUDE_PATHS || ["Frameworks", "Frameworks/Debug"];
}
StaticResource.cwd = FILE.cwd();