mirror of
https://github.com/octoleo/plantuml.git
synced 2025-02-02 12:08:34 +00:00
Fix JS for interactive SVG: place assignment before using
This commit is contained in:
parent
9304f79abc
commit
6928eb806b
@ -28,11 +28,11 @@ function main() {
|
||||
});
|
||||
|
||||
links.forEach(link => {
|
||||
let name1 = link.classList[1];
|
||||
let name2 = link.classList[2];
|
||||
|
||||
if (elemsMap[name1]) {
|
||||
if (elemsMap[name2]) {
|
||||
let name1 = link.classList[1];
|
||||
let name2 = link.classList[2];
|
||||
|
||||
let elem1 = elemsMap[name1];
|
||||
let elem2 = elemsMap[name2];
|
||||
|
||||
@ -107,4 +107,4 @@ function main() {
|
||||
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
main();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user