mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
Add onabort to XHR classes
Summary: 04d870b added support for onabort in XHRs. The other on* events are declared on XMLHttpRequest and XMLHttpRequestEventTarget. This adds onabort there as well. Adam Comella Microsoft Corp. Closes https://github.com/facebook/react-native/pull/12277 Differential Revision: D4673648 Pulled By: mkonicek fbshipit-source-id: 0c5255da77537103c5ad91d9b2826d064140708d
This commit is contained in:
parent
4c7576e485
commit
36f09dc252
@ -81,6 +81,7 @@ class XMLHttpRequestEventTarget extends EventTarget(...REQUEST_EVENTS) {
|
|||||||
onprogress: ?Function;
|
onprogress: ?Function;
|
||||||
ontimeout: ?Function;
|
ontimeout: ?Function;
|
||||||
onerror: ?Function;
|
onerror: ?Function;
|
||||||
|
onabort: ?Function;
|
||||||
onloadend: ?Function;
|
onloadend: ?Function;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,6 +110,7 @@ class XMLHttpRequest extends EventTarget(...XHR_EVENTS) {
|
|||||||
onprogress: ?Function;
|
onprogress: ?Function;
|
||||||
ontimeout: ?Function;
|
ontimeout: ?Function;
|
||||||
onerror: ?Function;
|
onerror: ?Function;
|
||||||
|
onabort: ?Function;
|
||||||
onloadend: ?Function;
|
onloadend: ?Function;
|
||||||
onreadystatechange: ?Function;
|
onreadystatechange: ?Function;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user