mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-12-16 22:23:45 +01:00
⚡ issignal
This commit is contained in:
9
dist/esm-with-signals.js
vendored
9
dist/esm-with-signals.js
vendored
@@ -175,11 +175,6 @@ var scope = {
|
||||
pop() {
|
||||
if (scopes.length === 1) return;
|
||||
return scopes.pop();
|
||||
},
|
||||
isolate(fn) {
|
||||
this.push({ prevent: true });
|
||||
fn();
|
||||
this.pop();
|
||||
}
|
||||
};
|
||||
function append(...els) {
|
||||
@@ -645,7 +640,7 @@ on.disconnectedAsAbort = function(host) {
|
||||
const a = new AbortController();
|
||||
store_abort.set(host, a);
|
||||
host(on.disconnected(() => a.abort()));
|
||||
return a;
|
||||
return a.signal;
|
||||
};
|
||||
var els_attribute_store = /* @__PURE__ */ new WeakSet();
|
||||
on.attributeChanged = function(listener, options) {
|
||||
@@ -711,7 +706,7 @@ var SignalReadOnly = oCreate(Signal, {
|
||||
} }
|
||||
});
|
||||
function isSignal(candidate) {
|
||||
return isProtoFrom(candidate, Signal);
|
||||
return candidate && candidate[mark];
|
||||
}
|
||||
var stack_watch = [];
|
||||
var deps = /* @__PURE__ */ new WeakMap();
|
||||
|
||||
Reference in New Issue
Block a user