Auto merge of #5844 - pgonda:removing-poping-dispatch_event, r=Ms2ger

fixes for #5843 
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5844)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-04-26 02:53:45 -05:00
commit aef48baeb4

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