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

🐛 improves/fixes queue

This commit is contained in:
2024-12-12 20:05:21 +01:00
parent 5098fb7fa2
commit 99d073b87a
7 changed files with 60 additions and 63 deletions

View File

@ -6,8 +6,7 @@ export const enviroment= {
H: globalThis.HTMLElement,
S: globalThis.SVGElement,
M: globalThis.MutationObserver,
qa: (p)=> p,
qw: ()=> Promise.resolve(),
q: p=> p || Promise.resolve(),
};
import { isUndef } from './helpers.js';
function setDeleteAttr(obj, prop, val){

View File

@ -1,7 +1,7 @@
import { signals } from "./signals-common.js";
import { enviroment as env } from './dom-common.js';
export function asyncQueueAdd(promise){ return env.qa(promise); }
export function queue(promise){ return env.q(promise); }
/** @type {{ scope: object, prevent: boolean, host: function }[]} */
const scopes= [ {
get scope(){ return env.D.body; },