mshtml: Bind load event directly to the target.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Jacek Caban 2016-05-02 14:05:38 +02:00 committed by Alexandre Julliard
parent 60538b4cd9
commit 67cb39b270
1 changed files with 10 additions and 1 deletions

View File

@ -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[] = {