summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-02-05 10:23:36 (GMT)
committer Daniel Silverstone <dsilvers@digital-scurf.org>2017-02-05 10:23:36 (GMT)
commit63321d2f21056c13fefcc436721a80067d0b6a74 (patch)
tree6d972f7e86825097d69a87bb8eccd997627203d0
parent9eae2e271b700bbbf88e3888489dab5182814a46 (diff)
downloadnsgenbind-63321d2f21056c13fefcc436721a80067d0b6a74.tar.gz
nsgenbind-63321d2f21056c13fefcc436721a80067d0b6a74.tar.bz2
Ensure generated attributes register for correct eventsdsilvers/eventwork
-rw-r--r--src/duk-libdom-generated.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/duk-libdom-generated.c b/src/duk-libdom-generated.c
index 95f1833..637573c 100644
--- a/src/duk-libdom-generated.c
+++ b/src/duk-libdom-generated.c
@@ -226,17 +226,20 @@ output_generated_attribute_user_setter(FILE* outf,
"\tduk_get_prop_string(ctx, -1, HANDLER_MAGIC);\n"
"\t/* handlerfn this handlers */\n"
"\tduk_push_lstring(ctx, \"%s\", %ld);\n"
- "\t/* handlerfn this handlers click */\n"
+ "\t/* handlerfn this handlers %s */\n"
"\tduk_dup(ctx, -4);\n"
- "\t/* handlerfn this handlers click handlerfn */\n"
+ "\t/* handlerfn this handlers %s handlerfn */\n"
"\tduk_put_prop(ctx, -3);\n"
"\t/* handlerfn this handlers */\n"
"\tdukky_register_event_listener_for(ctx,\n"
"\t\t(dom_element *)((node_private_t *)priv)->node,\n"
- "\t\tcorestring_dom_click);\n"
+ "\t\tcorestring_dom_%s, false);\n"
"\treturn 0;\n",
atributee->name + 2,
- strlen(atributee->name + 2));
+ strlen(atributee->name + 2),
+ atributee->name + 2,
+ atributee->name + 2,
+ atributee->name + 2);
return 0;
}
return -1;