cleaner static variable in downloadDictionary function

This commit is contained in:
Laurent Mazet 2020-06-10 23:01:37 +02:00
parent 2e40a8692e
commit 34dac8a414
1 changed files with 2 additions and 4 deletions

View File

@ -151,9 +151,8 @@
}
function downloadDictionary(code) {
if (typeof downloadDictionary.code === "undefined") {
downloadDictionary.code = "";
} else if (downloadDictionary.code === code) {
/* static variable */
if (downloadDictionary.code === code) {
return;
}
downloadDictionary.code = code;
@ -172,7 +171,6 @@
}
};
file.send(null);
return;
}
function removeElem(elem) {