Make throw_dom_exception take a &GlobalScope

This commit is contained in:
Anthony Ramine 2016-10-01 18:21:06 +02:00
parent ae6af5172b
commit 896d8d4781
3 changed files with 10 additions and 10 deletions

View file

@ -973,9 +973,8 @@ impl XMLHttpRequest {
if self.ready_state.get() == XMLHttpRequestState::HeadersReceived {
self.ready_state.set(XMLHttpRequestState::Loading);
}
let global = self.global();
let event = Event::new(
global.r().as_global_scope(),
&self.global_scope(),
atom!("readystatechange"),
EventBubbles::DoesNotBubble,
EventCancelable::Cancelable);