diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-01 18:21:06 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:35:39 +0200 |
commit | 896d8d4781ebce2a0884dd0d53412db7ac919aea (patch) | |
tree | d2a507ae70aa1a9f906e45c86f8015127a99a25d /components/script/dom/xmlhttprequest.rs | |
parent | ae6af5172b5f09e9ba19d0beca026fd0ac39f8c8 (diff) | |
download | servo-896d8d4781ebce2a0884dd0d53412db7ac919aea.tar.gz servo-896d8d4781ebce2a0884dd0d53412db7ac919aea.zip |
Make throw_dom_exception take a &GlobalScope
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index fe99410419b..3994334ba6b 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -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); |