mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-17 12:19:12 +08: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:
committed by
Facebook Github Bot
parent
4c7576e485
commit
36f09dc252
@@ -81,6 +81,7 @@ class XMLHttpRequestEventTarget extends EventTarget(...REQUEST_EVENTS) {
|
||||
onprogress: ?Function;
|
||||
ontimeout: ?Function;
|
||||
onerror: ?Function;
|
||||
onabort: ?Function;
|
||||
onloadend: ?Function;
|
||||
}
|
||||
|
||||
@@ -109,6 +110,7 @@ class XMLHttpRequest extends EventTarget(...XHR_EVENTS) {
|
||||
onprogress: ?Function;
|
||||
ontimeout: ?Function;
|
||||
onerror: ?Function;
|
||||
onabort: ?Function;
|
||||
onloadend: ?Function;
|
||||
onreadystatechange: ?Function;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user