From 00b63eb109eb694bbe20680dc6fbb987af676b8b Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Tue, 9 Apr 2024 21:08:43 -0400 Subject: [PATCH] fix lint --- src/wcc.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wcc.js b/src/wcc.js index 6e510d1..0b67d33 100644 --- a/src/wcc.js +++ b/src/wcc.js @@ -43,9 +43,9 @@ async function renderComponentRoots(tree, definitions) { console.log('elementHtml', { elementHtml }); console.log('elementTree', { elementTree }); console.log('elementTree.childNodes', elementTree.childNodes); - console.log('node.childNodes', node.childNodes) + console.log('node.childNodes', node.childNodes); - node.childNodes = node.childNodes.length === 0 && elementTree.childNodes > 0 && !hasShadow + node.childNodes = node.childNodes.length === 0 && hasLight > 0 && !hasShadow ? elementTree.childNodes : hasShadow ? [...elementTree.childNodes, ...node.childNodes] @@ -175,7 +175,7 @@ async function initializeCustomElement(elementURL, tagName, node = {}, definitio if (attrs.length > 0) { attrs.forEach(attr => { innerHTML += ` ${attr.name}="${attr.value}"`; - }) + }); } innerHTML += '>'; @@ -184,15 +184,15 @@ async function initializeCustomElement(elementURL, tagName, node = {}, definitio if (c.nodeName === '#text') { innerHTML += c.value; } - }) + }); innerHTML += ``; } - }) + }); console.log({ innerHTML }); elementInstance.innerHTML = innerHTML; - console.log('=================') + console.log('================='); attrs.forEach((attr) => { elementInstance.setAttribute(attr.name, attr.value);