mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
Add auxiliary method to EventTargetHelpers for events without target
fixup! Add auxiliary method to EventTargetHelpers for events without target
This commit is contained in:
parent
1bc2c8a639
commit
79487252ca
7 changed files with 21 additions and 15 deletions
|
@ -1078,7 +1078,7 @@ impl ScriptTask {
|
|||
let event: JSRef<Event> = EventCast::from_ref(*uievent);
|
||||
|
||||
let wintarget: JSRef<EventTarget> = EventTargetCast::from_ref(*window);
|
||||
let _ = wintarget.dispatch_event_with_target(None, event);
|
||||
wintarget.dispatch_event(event);
|
||||
}
|
||||
None => ()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue