code cleaning
This commit is contained in:
parent
9fd12eef50
commit
acee3f0774
3 changed files with 12 additions and 23 deletions
25
build/app.js
25
build/app.js
|
|
@ -2179,20 +2179,12 @@ function ResetCompletion(db) {
|
|||
if (entries[entry].hasOwnProperty("max")) {
|
||||
entries[entry].max = entries[entry].maxDefault;
|
||||
}
|
||||
|
||||
if (entry.hasOwnProperty("currentName")) {
|
||||
delete entries[entry].currentName;
|
||||
}
|
||||
|
||||
if (entry.hasOwnProperty("currentSpoiler")) {
|
||||
delete entries[entry].currentSpoiler;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
/* -------------------------- Classes ---------------------------- */
|
||||
/* -------------------------- Classes --------------------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
var DataChecker = /*#__PURE__*/function () {
|
||||
|
|
@ -2229,7 +2221,8 @@ var DataChecker = /*#__PURE__*/function () {
|
|||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
} // end _FindItem
|
||||
|
||||
/**
|
||||
* Verifies if a specific Geo Rock is destroyed and returns true/false.
|
||||
* @param {string} id the Geo Rock's id in the database.
|
||||
|
|
@ -2249,7 +2242,8 @@ var DataChecker = /*#__PURE__*/function () {
|
|||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
} // end _FindGeoRock
|
||||
|
||||
/**
|
||||
* Verifies the status of all items in a given section (e.g. Grubs or Whispering Roots) from the database.
|
||||
* @param {object} section Provide a section object to check.
|
||||
|
|
@ -2272,7 +2266,8 @@ var DataChecker = /*#__PURE__*/function () {
|
|||
|
||||
}
|
||||
}
|
||||
}
|
||||
} // end checkItems
|
||||
|
||||
/**
|
||||
* Verifies the status of all Geo Rocks from the database.
|
||||
* @param {object} section Provide a Geo Rocks section object to check.
|
||||
|
|
@ -2295,11 +2290,13 @@ var DataChecker = /*#__PURE__*/function () {
|
|||
|
||||
}
|
||||
}
|
||||
}
|
||||
} // end checkGeoRocks
|
||||
|
||||
}]);
|
||||
|
||||
return DataChecker;
|
||||
}();
|
||||
}(); // end class DataChecker
|
||||
|
||||
/* ----------------------- Event Listeners -------------------------- */
|
||||
// Populate HTML at load (before img and css)
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -2422,14 +2422,6 @@ function ResetCompletion(db) {
|
|||
if (entries[entry].hasOwnProperty("max")) {
|
||||
entries[entry].max = entries[entry].maxDefault;
|
||||
}
|
||||
|
||||
if (entry.hasOwnProperty("currentName")) {
|
||||
delete entries[entry].currentName;
|
||||
}
|
||||
|
||||
if (entry.hasOwnProperty("currentSpoiler")) {
|
||||
delete entries[entry].currentSpoiler;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue