From c2d51384c13db930bb43819a4ad4709153a3e871 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 1 Nov 2015 10:42:01 +0100 Subject: [PATCH] Current target, not target, otherwise events are fired in the wrong place --- javascript/duktape/dukky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/duktape/dukky.c b/javascript/duktape/dukky.c index 8b3ca25ca..d841f91a1 100644 --- a/javascript/duktape/dukky.c +++ b/javascript/duktape/dukky.c @@ -547,7 +547,7 @@ static void dukky_generic_event_handler(dom_event *evt, void *pw) phase == DOM_BUBBLING_PHASE ? "bubbling" : "unknown", (int)phase); - exc = dom_event_get_target(evt, &targ); + exc = dom_event_get_current_target(evt, &targ); if (exc != DOM_NO_ERR) { dom_string_unref(name); LOG("Unable to find the event target");