cleaner static variable in downloadDictionary function
This commit is contained in:
parent
2e40a8692e
commit
34dac8a414
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue