From d68d2f8c9715a0311f98b8140d53fae1ded3234b Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Sat, 2 Dec 2023 14:43:53 +0800 Subject: [PATCH] fixed cleardone animation --- scripts/taskList.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/taskList.js b/scripts/taskList.js index e3ea1b6..53fc469 100644 --- a/scripts/taskList.js +++ b/scripts/taskList.js @@ -1341,7 +1341,6 @@ function clearAllDoneTasks() { tasks[user].todos = tasks[user].todos.filter((t) => !t.done); } cancelAnimation(); - checkToAnimate(); localStorage.setItem(`tasks`, JSON.stringify(tasks)); renderTaskListToDOM(); @@ -1353,7 +1352,6 @@ function clearAllDoneTasks() { function clearAllTasks() { localStorage.setItem(`tasks`, "{}"); cancelAnimation(); - checkToAnimate(); renderTaskListToDOM(); return { @@ -1387,7 +1385,6 @@ function clearAllExceptStreamer(streamer) { clearAllDoneTasks(); cancelAnimation(); - checkToAnimate(); renderTaskListToDOM();