From 1605f29b6f6ebeaf00a27d556bad708bd1d2e836 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 7 Jun 2019 12:51:27 +0200 Subject: [PATCH] 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 --- modules/luci-base/htdocs/luci-static/resources/luci.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js index 853bbfc05..1e1c38bbe 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) { -- 2.25.1