1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2026-05-16 10:11:24 +02:00

🐛 now only el(..., string|number)

This commit is contained in:
2025-03-15 20:53:57 +01:00
parent 8adca7faa0
commit 44c28f1bd2
9 changed files with 21 additions and 16 deletions
+2 -1
View File
@@ -435,7 +435,8 @@ function createElement(tag, attributes, ...addons) {
const s = signals(this);
let scoped = 0;
let el, el_host;
if (Object(attributes) !== attributes || s.isSignal(attributes))
const att_type = typeof attributes;
if (att_type === "string" || att_type === "number" || s.isSignal(attributes))
attributes = { textContent: attributes };
switch (true) {
case typeof tag === "function": {
+4 -4
View File
File diff suppressed because one or more lines are too long
Vendored
+2 -1
View File
@@ -406,7 +406,8 @@ function createElement(tag, attributes, ...addons) {
const s = signals(this);
let scoped = 0;
let el, el_host;
if (Object(attributes) !== attributes || s.isSignal(attributes))
const att_type = typeof attributes;
if (att_type === "string" || att_type === "number" || s.isSignal(attributes))
attributes = { textContent: attributes };
switch (true) {
case typeof tag === "function": {
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -480,7 +480,8 @@ var DDE = (() => {
const s = signals(this);
let scoped = 0;
let el, el_host;
if (Object(attributes) !== attributes || s.isSignal(attributes))
const att_type = typeof attributes;
if (att_type === "string" || att_type === "number" || s.isSignal(attributes))
attributes = { textContent: attributes };
switch (true) {
case typeof tag === "function": {
+4 -4
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -448,7 +448,8 @@ var DDE = (() => {
const s = signals(this);
let scoped = 0;
let el, el_host;
if (Object(attributes) !== attributes || s.isSignal(attributes))
const att_type = typeof attributes;
if (att_type === "string" || att_type === "number" || s.isSignal(attributes))
attributes = { textContent: attributes };
switch (true) {
case typeof tag === "function": {
+1 -1
View File
File diff suppressed because one or more lines are too long