[mw-devel] MW3 r1145 - trunk/src
welshbyte at sucs.org
welshbyte at sucs.org
Fri Jan 15 18:44:24 GMT 2010
Author: welshbyte
Date: 2010-01-15 18:44:24 +0000 (Fri, 15 Jan 2010)
New Revision: 1145
Modified:
trunk/src/js.c
Log:
s/store/Store/ for the persistent object. It makes sense to have a naming scheme for built-in objects so I'm changing it now to avoid even more grief later.
Modified: trunk/src/js.c
===================================================================
--- trunk/src/js.c 2010-01-05 17:31:31 UTC (rev 1144)
+++ trunk/src/js.c 2010-01-15 18:44:24 UTC (rev 1145)
@@ -1009,7 +1009,7 @@
}
static JSClass js_storeclass = {
- "store", JSCLASS_HAS_PRIVATE,
+ "Store", JSCLASS_HAS_PRIVATE,
JS_PropertyStub, JS_PropertyStub, js_store_get, js_store_set,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub,
JSCLASS_NO_OPTIONAL_MEMBERS
@@ -1298,7 +1298,7 @@
JS_DefineProperty(jscx, jsroot, "K_BROADCAST", INT_TO_JSVAL(K_BROADCAST), NULL, NULL, JSPROP_READONLY|JSPROP_PERMANENT);
/* A stateful object backed with persistent db storage */
- JS_DefineObject(jscx, jsroot, "store", &js_storeclass, NULL, JSPROP_READONLY|JSPROP_PERMANENT);
+ JS_DefineObject(jscx, jsroot, "Store", &js_storeclass, NULL, JSPROP_READONLY|JSPROP_PERMANENT);
/* not for bbs user */
if (is_local) {
More information about the mw-devel
mailing list