mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Removed unessary poping in dispatch_event, fixes #5843
This commit is contained in:
parent
ef536372cd
commit
d0f451c2e1
1 changed files with 0 additions and 6 deletions
|
@ -128,12 +128,6 @@ pub fn dispatch_event<'a, 'b>(target: JSRef<'a, EventTarget>,
|
|||
None => {}
|
||||
}
|
||||
|
||||
// Root ordering restrictions mean we need to unroot the chain entries
|
||||
// in the same order they were rooted.
|
||||
while chain.len() > 0 {
|
||||
let _ = chain.pop();
|
||||
}
|
||||
|
||||
event.set_dispatching(false);
|
||||
event.set_phase(EventPhase::None);
|
||||
event.clear_current_target();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue