Skip to content
Snippets Groups Projects
Commit ce9ed998 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Fixed some warnings.

parent d908faf3
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ class NodeNeighborOverlay { ...@@ -99,7 +99,7 @@ class NodeNeighborOverlay {
collTabContent.type = name; collTabContent.type = name;
const list = createHTMLElement("ul", collTabContent); const list = createHTMLElement("ul", collTabContent);
list.style.margin = 0; list.style.margin = "0px";
collTabContent.list = list; collTabContent.list = list;
collTabContent.marker = openMarkerTabs; collTabContent.marker = openMarkerTabs;
...@@ -157,11 +157,11 @@ class NodeNeighborOverlay { ...@@ -157,11 +157,11 @@ class NodeNeighborOverlay {
/** /**
* Creates a new list element for the given target node. * Creates a new list element for the given target node.
* @param target * @param target
* @returns {HTMLDivElement} * @returns {HTMLLIElement}
*/ */
createReference(target) { createReference(target) {
const linkDiv = document.createElement("li"); const linkDiv = document.createElement("li");
var linkText = document.createTextNode(target.name); const linkText = document.createTextNode(target.name);
linkDiv.className = "neighbor-content-link"; linkDiv.className = "neighbor-content-link";
linkDiv.appendChild(linkText); linkDiv.appendChild(linkText);
linkDiv.addEventListener("click", () => { linkDiv.addEventListener("click", () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment