luci-base: luci.js: don't abort finished xhr objects
Calling abort() on a finished xhr object will clear properties such as status which can confuse code relying on legacy LuCI request helper functions. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
0bcb9f9f1d
commit
1605f29b6f
1 changed files with 0 additions and 5 deletions
|
@ -393,11 +393,6 @@
|
||||||
.then(resolveFn.bind(this, response))
|
.then(resolveFn.bind(this, response))
|
||||||
.catch(rejectFn.bind(this));
|
.catch(rejectFn.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
xhr.abort();
|
|
||||||
}
|
|
||||||
catch(e) {}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
get: function(url, options) {
|
get: function(url, options) {
|
||||||
|
|
Loading…
Reference in a new issue