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:
Yves
2013-09-21 14:48:19 +00:00
parent bb506fb578
commit 9781b67cf4
12 changed files with 53 additions and 158 deletions
-23
View File
@@ -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 },
};