Removed unessary poping in dispatch_event, fixes #5843

This commit is contained in:
Peter 2015-04-25 20:22:04 -04:00
parent ef536372cd
commit d0f451c2e1

View file

@ -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();