1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-04 21:42:14 +02:00

improved customElementRender

This commit is contained in:
2024-12-13 13:53:41 +01:00
parent 99d073b87a
commit 3d0aeafc5c
6 changed files with 495 additions and 490 deletions

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