mshtml: Bind load event directly to the target.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
60538b4cd9
commit
67cb39b270
|
@ -4267,7 +4267,16 @@ static event_target_t **HTMLElement_get_event_target_ptr(DispatchEx *dispex)
|
|||
static void HTMLElement_bind_event(DispatchEx *dispex, int eid)
|
||||
{
|
||||
HTMLElement *This = impl_from_DispatchEx(dispex);
|
||||
This->node.doc->node.event_target.dispex.data->vtbl->bind_event(&This->node.doc->node.event_target.dispex, eid);
|
||||
|
||||
static const WCHAR loadW[] = {'l','o','a','d',0};
|
||||
|
||||
switch(eid) {
|
||||
case EVENTID_LOAD:
|
||||
add_nsevent_listener(This->node.doc, This->node.nsnode, loadW);
|
||||
return;
|
||||
default:
|
||||
This->node.doc->node.event_target.dispex.data->vtbl->bind_event(&This->node.doc->node.event_target.dispex, eid);
|
||||
}
|
||||
}
|
||||
|
||||
static const tid_t HTMLElement_iface_tids[] = {
|
||||
|
|
Loading…
Reference in New Issue