From 65d625fddf66d02bbeb6c029445b6c5f2eeae63c Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 27 Jun 2017 15:17:52 +0300 Subject: [PATCH] code cosmetics: missed a debounce() case --- manage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manage.js b/manage.js index 724f1127..87e357c7 100644 --- a/manage.js +++ b/manage.js @@ -709,8 +709,7 @@ function searchStyles({immediately, container}) { return; } if (!immediately) { - clearTimeout(searchStyles.timeout); - searchStyles.timeout = setTimeout(searchStyles, 150, {immediately: true}); + debounce(searchStyles, 150, {immediately: true}); return; } searchElement.lastValue = query;