From d3781aad63e6c2810d810dfcbadecb1ee3513fe0 Mon Sep 17 00:00:00 2001 From: Kevin Abel <kevin.abel.0@gmail.com> Date: Mon, 21 Jul 2014 14:31:31 -0500 Subject: [PATCH] Abort pending directory search before executing a new one --- www/js/search.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/js/search.js b/www/js/search.js index 0bd4750..f060f41 100644 --- a/www/js/search.js +++ b/www/js/search.js @@ -106,6 +106,9 @@ self = this; this._searchCanceled = false; + if (this._xhr) { + this._xhr.abort(); + } if (cacheData) { this._render(cacheData); -- GitLab