Skip to content

Commit

Permalink
remove warning when auto-building children
Browse files Browse the repository at this point in the history
  • Loading branch information
loudar committed Jun 27, 2024
1 parent 9238d80 commit 4bfb28b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion f.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@ export class DomNode {
this._node.appendChild(node);
} else if (node instanceof DomNode) {
this._node.appendChild(node.build());
stack('Called .build() for you. You should call .build() yourself to avoid this warning.');
} else if (node && node.constructor === FjsObservable) {
let childNode = node.value;
if (!isValidElement(childNode)) {
Expand Down
1 change: 0 additions & 1 deletion f.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@ export class DomNode {
this._node.appendChild(node);
} else if (node instanceof DomNode) {
this._node.appendChild(node.build());
stack('Called .build() for you. You should call .build() yourself to avoid this warning.');
} else if (node && node.constructor === FjsObservable) {
let childNode = node.value;
if (!isValidElement(childNode)) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@targoninc/fjs",
"version": "2.7.5",
"version": "2.7.6",
"description": "A JavaScript library that provides a factory syntax to create DOM elements",
"author": "Alexander Fritsch <[email protected]> (https://targoninc.com)",
"main": "f.mjs",
Expand Down

0 comments on commit 4bfb28b

Please sign in to comment.