1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2026-04-28 08:35:28 +02:00
This commit is contained in:
2025-03-05 19:29:03 +01:00
parent 05413cb2bb
commit 17e40fdd9c
28 changed files with 215 additions and 98 deletions
+5
View File
@@ -177,6 +177,11 @@ var scope = {
pop() {
if (scopes.length === 1) return;
return scopes.pop();
},
isolate(fn) {
this.push({ prevent: true });
fn();
this.pop();
}
};
function append(...els) {
+2 -2
View File
File diff suppressed because one or more lines are too long
Vendored
+5
View File
@@ -154,6 +154,11 @@ var scope = {
pop() {
if (scopes.length === 1) return;
return scopes.pop();
},
isolate(fn) {
this.push({ prevent: true });
fn();
this.pop();
}
};
function append(...els) {
+4 -4
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -232,11 +232,13 @@ export const scope: {
state: Scope[],
/** Adds new child scope. All attributes are inherited by default. */
push(scope: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
push(scope?: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
/** Adds root scope as a child of the current scope. */
pushRoot(): ReturnType<Array<Scope>["push"]>,
/** Removes last/current child scope. */
pop(): ReturnType<Array<Scope>["pop"]>,
/** Runs function in a new (isolated) scope */
isolate(fn: Function): void,
};
export function customElementRender<
+3 -1
View File
@@ -232,11 +232,13 @@ export const scope: {
state: Scope[],
/** Adds new child scope. All attributes are inherited by default. */
push(scope: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
push(scope?: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
/** Adds root scope as a child of the current scope. */
pushRoot(): ReturnType<Array<Scope>["push"]>,
/** Removes last/current child scope. */
pop(): ReturnType<Array<Scope>["pop"]>,
/** Runs function in a new (isolated) scope */
isolate(fn: Function): void,
};
export function customElementRender<
+5
View File
@@ -175,6 +175,11 @@ var scope = {
pop() {
if (scopes.length === 1) return;
return scopes.pop();
},
isolate(fn) {
this.push({ prevent: true });
fn();
this.pop();
}
};
function append(...els) {
+2 -2
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -232,11 +232,13 @@ export const scope: {
state: Scope[],
/** Adds new child scope. All attributes are inherited by default. */
push(scope: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
push(scope?: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
/** Adds root scope as a child of the current scope. */
pushRoot(): ReturnType<Array<Scope>["push"]>,
/** Removes last/current child scope. */
pop(): ReturnType<Array<Scope>["pop"]>,
/** Runs function in a new (isolated) scope */
isolate(fn: Function): void,
};
export function customElementRender<
+3 -1
View File
@@ -232,11 +232,13 @@ export const scope: {
state: Scope[],
/** Adds new child scope. All attributes are inherited by default. */
push(scope: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
push(scope?: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
/** Adds root scope as a child of the current scope. */
pushRoot(): ReturnType<Array<Scope>["push"]>,
/** Removes last/current child scope. */
pop(): ReturnType<Array<Scope>["pop"]>,
/** Runs function in a new (isolated) scope */
isolate(fn: Function): void,
};
export function customElementRender<
Vendored
+5
View File
@@ -152,6 +152,11 @@ var scope = {
pop() {
if (scopes.length === 1) return;
return scopes.pop();
},
isolate(fn) {
this.push({ prevent: true });
fn();
this.pop();
}
};
function append(...els) {
+1 -1
View File
File diff suppressed because one or more lines are too long