Skip to content

Commit

Permalink
refactor: don't set $tent.isComponent
Browse files Browse the repository at this point in the history
it is not used any longer
  • Loading branch information
sebkolind committed May 20, 2024
1 parent ab27aec commit 78cf179
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function mount<S extends {} = {}, A extends Attrs = {}>(

el.$tent = {
attributes: {},
isComponent: true,
};

const handler = {
Expand Down Expand Up @@ -55,7 +54,6 @@ function mount<S extends {} = {}, A extends Attrs = {}>(
node = view({ state: proxy, el, attr: getAttribute<A>(el) });
node.$tent = {
attributes: {},
isComponent: false,
};

el.append(node);
Expand Down
1 change: 0 additions & 1 deletion src/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ function createTag(context: Context) {

el.$tent = {
attributes: {},
isComponent: false,
};

for (const key in attributes) {
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export type TentNode<A extends Attrs = undefined> = Node &
HTMLElement & {
$tent: {
attributes: object;
isComponent: boolean;
};
dataset: A & DOMStringMap;
children: TentNode<A>[];
Expand Down

0 comments on commit 78cf179

Please sign in to comment.