Skip to content
Snippets Groups Projects
Verified Commit 943f9376 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

refactor: change fkt name internalTemplateLookUP

git s
parent b4068046
No related branches found
No related tags found
No related merge requests found
...@@ -514,7 +514,15 @@ function insertElement(change) { ...@@ -514,7 +514,15 @@ function insertElement(change) {
} }
} }
function findTemplate(container, key, ref, path) { /**
* @private
* @param container
* @param key
* @param ref
* @param path
* @returns {any}
*/
function internalTemplateLookUp(container, key, ref, path) {
let templateID = key; let templateID = key;
let template; let template;
...@@ -551,8 +559,8 @@ function findTemplate(container, key, ref, path) { ...@@ -551,8 +559,8 @@ function findTemplate(container, key, ref, path) {
*/ */
function appendNewDocumentFragment(container, key, ref, path) { function appendNewDocumentFragment(container, key, ref, path) {
let template = findTemplate(container, key, ref, path); let template = internalTemplateLookUp(container, key, ref, path);
console.log(template);
let nodes = template.createDocumentFragment(); let nodes = template.createDocumentFragment();
for (const [, node] of Object.entries(nodes.childNodes)) { for (const [, node] of Object.entries(nodes.childNodes)) {
if (node instanceof HTMLElement) { if (node instanceof HTMLElement) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment