Add cancel method to fetch mixin.
This commit is contained in:
@@ -5,6 +5,10 @@ export const fetchMixin = function(superClass) {
|
|||||||
this.__abortControllers = new Map();
|
this.__abortControllers = new Map();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cancel(method, url) {
|
||||||
|
return this.__cancelRunningRequest(method, url);
|
||||||
|
}
|
||||||
|
|
||||||
get(url, overwrite = true) {
|
get(url, overwrite = true) {
|
||||||
return this.do('GET', url, null, overwrite);
|
return this.do('GET', url, null, overwrite);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/helpers",
|
"name": "@tp/helpers",
|
||||||
"version": "2.10.2",
|
"version": "2.10.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "closest.js",
|
"main": "closest.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user