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:
Jo-Philipp Wich 2019-06-07 12:51:27 +02:00
parent 0bcb9f9f1d
commit 1605f29b6f

View file

@ -393,11 +393,6 @@
.then(resolveFn.bind(this, response))
.catch(rejectFn.bind(this));
}
try {
xhr.abort();
}
catch(e) {}
},
get: function(url, options) {