Skip to content
Snippets Groups Projects
Commit f7f04da4 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[foldcode addon] Make sure DOM widgets are cloned before being used

So that the addon doesn't try to put a single DOM node in two places

Closes #4848
parent 0ea666fe
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,8 @@
widget = document.createElement("span");
widget.appendChild(text);
widget.className = "CodeMirror-foldmarker";
} else if (widget) {
widget = widget.cloneNode(true)
}
return widget;
}
......
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