We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 894bd68 commit dd986c9Copy full SHA for dd986c9
1 file changed
index.js
@@ -144,6 +144,8 @@ class CodeplusGroup {
144
}
145
146
render() {
147
+ if (this.instances.length === 0) return;
148
+
149
let groupDiv = document.createElement("div");
150
groupDiv.className = "codeplus codeplus-group " + this.groupClass;
151
@@ -270,8 +272,6 @@ class Codeplus {
270
272
271
273
if (this.debug) console.log("Codeplus DOM nodes selected", this.domNodes);
274
- if (this.domNodes.length === 0) return;
-
275
this.groups = this.getGroups(
276
Array.from(this.domNodes).map(
277
(node) =>
0 commit comments