Changed #define from RHINO to COMMONJS. Re-enabled recently added document-load-waiting.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2010-01-27 03:58:49 -08:00
parent a64a270e25
commit fcfeb29be5
4 changed files with 37 additions and 7 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ function Executable(/*String*/ aCode, /*Array*/ fileDependencies, /*String*/ aSc
var code = this._code;
#if RHINO
code = "function(\"" + this.functionParameters().join("\",\"" + "\"){" + code + "/**/\n}";
#if COMMONJS
code = "function(" + this.functionParameters().join(" , ") + "){" + code + "/**/\n}";
if (typeof system !== "undefined" && system.engine === "rhino")
this._function = Packages.org.mozilla.javascript.Context.getCurrentContext().compileFunction(window, code, this._scope, 0, null);