Skip to content
Snippets Groups Projects
Commit 8d226658 authored by rswindell's avatar rswindell
Browse files

Created bbs.mods object (at Tracker1's request) for a common global repository

for 3rd party modifications/modules (properties, methods, objects).
parent 6a7fbf0d
No related branches found
No related tags found
No related merge requests found
......@@ -2842,6 +2842,7 @@ static JSClass js_bbs_class = {
JSObject* js_CreateBbsObject(JSContext* cx, JSObject* parent)
{
JSObject* obj;
JSObject* mods;
obj = JS_DefineObject(cx, parent, "bbs", &js_bbs_class, NULL
,JSPROP_ENUMERATE|JSPROP_READONLY);
......@@ -2855,7 +2856,11 @@ JSObject* js_CreateBbsObject(JSContext* cx, JSObject* parent)
if (!js_DefineSyncMethods(cx, obj, js_bbs_functions, FALSE))
return(NULL);
if((mods=JS_DefineObject(cx, obj, "mods", NULL, NULL ,JSPROP_ENUMERATE))==NULL)
return(NULL);
#ifdef _DEBUG
js_DescribeSyncObject(cx,mods,"Global repository for 3rd party modifications",311);
js_DescribeSyncObject(cx,obj,"Controls the Telnet/RLogin BBS experience",310);
js_CreateArrayOfStrings(cx, obj, "_property_desc_list", bbs_prop_desc, JSPROP_READONLY);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment