FirmwareCache: naming fixes
parent
e432d8656d
commit
b18a98299b
|
@ -172,7 +172,7 @@ let FirmwareCache = (function () {
|
|||
/**
|
||||
* Remove all cached data
|
||||
*/
|
||||
function destroy() {
|
||||
function invalidate() {
|
||||
if (!journalLoaded) {
|
||||
console.warn("Cache journal not yet loaded");
|
||||
return undefined;
|
||||
|
@ -240,10 +240,10 @@ let FirmwareCache = (function () {
|
|||
load: () => {
|
||||
JournalStorage.load(onEntriesLoaded);
|
||||
},
|
||||
flush: () => {
|
||||
unload: () => {
|
||||
JournalStorage.persist(journal.toJSON());
|
||||
journal.clear();
|
||||
},
|
||||
destroy: destroy,
|
||||
invalidate: invalidate,
|
||||
};
|
||||
})();
|
||||
|
|
|
@ -545,7 +545,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
|||
|
||||
TABS.firmware_flasher.cleanup = function (callback) {
|
||||
PortHandler.flush_callbacks();
|
||||
FirmwareCache.flush();
|
||||
FirmwareCache.unload();
|
||||
|
||||
// unbind "global" events
|
||||
$(document).unbind('keypress');
|
||||
|
|
Loading…
Reference in New Issue