Current target, not target, otherwise events are fired in the wrong place

This commit is contained in:
Daniel Silverstone 2015-11-01 10:42:01 +01:00
parent 6eb6208159
commit c2d51384c1

View File

@ -547,7 +547,7 @@ static void dukky_generic_event_handler(dom_event *evt, void *pw)
phase == DOM_BUBBLING_PHASE ? "bubbling" : phase == DOM_BUBBLING_PHASE ? "bubbling" :
"unknown", (int)phase); "unknown", (int)phase);
exc = dom_event_get_target(evt, &targ); exc = dom_event_get_current_target(evt, &targ);
if (exc != DOM_NO_ERR) { if (exc != DOM_NO_ERR) {
dom_string_unref(name); dom_string_unref(name);
LOG("Unable to find the event target"); LOG("Unable to find the event target");