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

♻️ split assign to assign and assignAttribute

This commit is contained in:
2023-10-15 11:12:06 +02:00
parent 7d4cc29174
commit f08d495a5c
3 changed files with 48 additions and 36 deletions

View File

@ -107,9 +107,9 @@ S.el= function(signal, map){
import { typeOf } from './helpers.js';
export const signals_config= {
isSignal,
processReactiveAttribute(_, key, attrs, assignNth){
processReactiveAttribute(_, key, attrs, set){
if(!isSignal(attrs)) return attrs;
const l= attr=> assignNth([ key, attr ]);
const l= attr=> set(key, attr);
addSignalListener(attrs, l);
removeSignalsFromElements(attrs, l, _, key);
return attrs();