⚡ improved customElementRender

This commit is contained in:
jaandrle committed 2024-12-13 13:53:41 +01:00
1 parent 99d073b87a
commit 3d0aeafc5c
6 files changed
+495 -490

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
import { keyLTE, evc, evd, eva } from "./dom-common.js";
import { scope } from "./dom.js";
import { c_ch_o } from "./events-observer.js";
export function customElementRender(custom_element, target, render, props= observedAttributes){
export function customElementRender(target, render, props= observedAttributes){
const custom_element= target.host || target;
scope.push({
scope: custom_element,
host: (...c)=> c.length ? c.forEach(c=> c(custom_element)) : custom_element