mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-26 14:07:05 +03:00
Support generating event objects during events
This commit is contained in:
parent
c2d51384c1
commit
1284731d1a
@ -430,9 +430,15 @@ static void dukky_push_event(duk_context *ctx, dom_event *evt)
|
||||
/* ... events undefined */
|
||||
duk_pop(ctx);
|
||||
/* ... events */
|
||||
duk_push_pointer(ctx, evt);
|
||||
if (dukky_create_object(ctx, PROTO_NAME(EVENT), 1) != DUK_EXEC_SUCCESS) {
|
||||
/* ... events err */
|
||||
duk_pop(ctx);
|
||||
/* ... events */
|
||||
duk_push_object(ctx);
|
||||
/* ... events eobj[meh] */
|
||||
}
|
||||
/* ... events eobj */
|
||||
/** @todo fill out the event object */
|
||||
duk_push_pointer(ctx, evt);
|
||||
/* ... events eobj eventptr */
|
||||
duk_dup(ctx, -2);
|
||||
|
Loading…
Reference in New Issue
Block a user