mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[mujs] 2nd param for Event constructor
This commit is contained in:
parent
d0e80bbe83
commit
dd40377e71
@ -181,6 +181,16 @@ mjs_event_constructor(js_State *J)
|
||||
}
|
||||
event->type_ = null_or_stracpy(js_tostring(J, 1));
|
||||
|
||||
js_getproperty(J, 2, "bubbles");
|
||||
event->bubbles = js_toboolean(J, -1);
|
||||
js_pop(J, 1);
|
||||
js_getproperty(J, 2, "cancelable");
|
||||
event->cancelable = js_toboolean(J, -1);
|
||||
js_pop(J, 1);
|
||||
js_getproperty(J, 2, "composed");
|
||||
event->composed = js_toboolean(J, -1);
|
||||
js_pop(J, 1);
|
||||
|
||||
js_newobject(J);
|
||||
{
|
||||
js_newuserdata(J, "event", event, mjs_event_finalizer);
|
||||
|
Loading…
Reference in New Issue
Block a user