From: Jo-Philipp Wich Date: Fri, 7 Jun 2019 10:51:27 +0000 (+0200) Subject: luci-base: luci.js: don't abort finished xhr objects X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=1605f29b6f6ebeaf00a27d556bad708bd1d2e836;p=project%2Fluci.git 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 --- diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js index 853bbfc05d..1e1c38bbed 100644 --- a/modules/luci-base/htdocs/luci-static/resources/luci.js +++ b/modules/luci-base/htdocs/luci-static/resources/luci.js @@ -393,11 +393,6 @@ .then(resolveFn.bind(this, response)) .catch(rejectFn.bind(this)); } - - try { - xhr.abort(); - } - catch(e) {} }, get: function(url, options) {