@@ -106,7 +106,9 @@ import {fixText, fromDashed, getRandomId, normalizePath, setAttrValue} from '../../common.js' | ||
| } | ||
| let nodeIterator = document.createNodeIterator(clone, NodeFilter.SHOW_COMMENT); | ||
| let node; | ||
| while(node = nodeIterator.nextNode()){ | ||
| let id = (node.textContent.split(":")[1] || "").trim(); | ||
| node._tpl = this.nestedTemplates.get(id); | ||
| if (this.nestedTemplates.size > 0) { | ||
| let nodeIterator = document.createNodeIterator(clone, NodeFilter.SHOW_COMMENT); | ||
| let node; | ||
| while (node = nodeIterator.nextNode()) { | ||
| let id = (node.textContent.split(":")[1] || "").trim(); | ||
| node._tpl = this.nestedTemplates.get(id); | ||
| } | ||
| } | ||
@@ -113,0 +115,0 @@ return clone; |
+1
-1
| { | ||
| "name": "polylib", | ||
| "description": "A simple library for creating fast, lightweight web components.", | ||
| "version": "1.1.12", | ||
| "version": "1.1.13", | ||
| "license": "MIT", | ||
@@ -6,0 +6,0 @@ "type": "module", |
36932
0.22%935
0.21%