Fixed number of TODOs

This commit is contained in:
Daniel van Noord
2021-01-31 20:32:15 +01:00
parent c602ea5f45
commit 545a1a3102
6 changed files with 10 additions and 22 deletions

View File

@@ -322,8 +322,7 @@ CM.Main.ReplaceTooltipGarden = function() {
};
/********
* Section: Functions related to checking for changes in Minigames/GC's/Ticker
* TODO: Possibly move this section */
* Section: Functions related to checking for changes in Minigames/GC's/Ticker */
/**
* Auxilirary function that finds all currently spawned shimmers.
@@ -345,14 +344,12 @@ CM.Main.FindShimmer = function() {
/**
* This function checks for changes in the amount of Golden Cookies
* It is called by CM.Loop
* TODO: Remove the delete function, as it does not delete correctly and crowds CM.Disp.GCTimers
*/
CM.Main.CheckGoldenCookie = function() {
CM.Main.FindShimmer();
for (let i of Object.keys(CM.Disp.GCTimers)) {
if (typeof CM.Cache.goldenShimmersByID[i] == "undefined") {
CM.Disp.GCTimers[i].parentNode.removeChild(CM.Disp.GCTimers[i]);
// TODO remove delete here
delete CM.Disp.GCTimers[i];
}
}