mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-02 00:43:35 +00:00
Check for "system", fixes press.
This commit is contained in:
@@ -159,7 +159,7 @@ function fragment_evaluate_code(aFragment)
|
||||
{
|
||||
#if RHINO
|
||||
var functionText = "function(){"+GET_CODE(aFragment)+"/**/\n}";
|
||||
if (system.engine === "rhino")
|
||||
if (typeof system !== "undefined" && system.engine === "rhino")
|
||||
compiled = Packages.org.mozilla.javascript.Context.getCurrentContext().compileFunction(window, functionText, GET_FILE(aFragment).path, 0, null);
|
||||
else
|
||||
compiled = eval(functionText);
|
||||
|
||||
Reference in New Issue
Block a user