0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

Bug 846: Comments on the relations between JSClasses and functions.

This commit is contained in:
Kalle Olavi Niemitalo
2006-11-23 23:33:43 +02:00
committed by Kalle Olavi Niemitalo
parent d6ea143f36
commit 670ad939c3
12 changed files with 53 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ struct smjs_action_fn_callback_hop {
action_id_T action_id;
};
/* @action_fn_class.finalize */
static void
smjs_action_fn_finalize(JSContext *ctx, JSObject *obj)
{
@@ -29,6 +30,7 @@ smjs_action_fn_finalize(JSContext *ctx, JSObject *obj)
if (hop) mem_free(hop);
}
/* @action_fn_class.call */
static JSBool
smjs_action_fn_callback(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv,
jsval *rval)
@@ -108,6 +110,7 @@ smjs_get_action_fn_object(unsigned char *action_str)
/*** elinks.action object ***/
/* @action_class.getProperty */
static JSBool
action_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
{