Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e40a86
)
cleaner static variable in downloadDictionary function
author
Laurent Mazet
<mazet@softndesign.org>
Wed, 10 Jun 2020 21:01:37 +0000
(23:01 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Wed, 10 Jun 2020 21:01:37 +0000
(23:01 +0200)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index d84a5baf4caa6e0b8f55304bff6273cca96e80ec..37f9a5f1042e6d4ce49ab9c9370fb762402e5204 100644
(file)
--- a/
public/trivabble.js
+++ b/
public/trivabble.js
@@
-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) {