Remove JS::from_rooted

This commit is contained in:
Anthony Ramine 2016-05-31 14:43:58 +02:00
parent 134fd18767
commit b45f1918d1
14 changed files with 24 additions and 33 deletions

View file

@ -157,7 +157,7 @@ impl XMLHttpRequest {
ready_state: Cell::new(XMLHttpRequestState::Unsent),
timeout: Cell::new(0u32),
with_credentials: Cell::new(false),
upload: JS::from_rooted(&XMLHttpRequestUpload::new(global)),
upload: JS::from_ref(&*XMLHttpRequestUpload::new(global)),
response_url: DOMRefCell::new(String::from("")),
status: Cell::new(0),
status_text: DOMRefCell::new(ByteString::new(vec!())),