mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-03 07:36:16 +00:00
Changed #define from RHINO to COMMONJS. Re-enabled recently added document-load-waiting.
Reviewed by me.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user