aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/eventdispatcher.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/components/script/dom/eventdispatcher.rs b/components/script/dom/eventdispatcher.rs
index e4faed47f62..1ec656b3428 100644
--- a/components/script/dom/eventdispatcher.rs
+++ b/components/script/dom/eventdispatcher.rs
@@ -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();