Changes the Console to expose global functions to scripts instead of properties.
Fixes #2140 Refs #1886 This was SVN commit r13884.
This commit is contained in:
1 parent
bb506fb578
commit
9781b67cf4
12 files changed
+53
-158
No files matched your search
@@ -402,26 +402,3 @@ JSFunctionSpec ScriptFunctionTable[] =
|
||||
{0}
|
||||
};
|
||||
#undef JS_FUNC
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// property accessors
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
enum ScriptGlobalTinyIDs
|
||||
{
|
||||
GLOBAL_SELECTION,
|
||||
GLOBAL_GROUPSARRAY,
|
||||
GLOBAL_CAMERA,
|
||||
GLOBAL_CONSOLE,
|
||||
GLOBAL_LIGHTENV
|
||||
};
|
||||
|
||||
JSPropertySpec ScriptGlobalTable[] =
|
||||
{
|
||||
{ "console" , GLOBAL_CONSOLE, JSPROP_PERMANENT|JSPROP_READONLY, JSI_Console::getConsole, 0 },
|
||||
|
||||
// end of table marker
|
||||
{ 0, 0, 0, 0, 0 },
|
||||
};
|
||||
Reference in new issue
Block a user