Skip to content

Commit

Permalink
add willRender, 2nd try
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Mar 2, 2022
1 parent 5a85ec9 commit fe7525a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions index.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ class Tonic extends window.HTMLElement {
}

_set (target, render, content = '') {
this.willRender && this.willRender()

for (const node of target.querySelectorAll(Tonic._tags)) {
if (!node.isTonicComponent) continue

Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ class Tonic extends window.HTMLElement {
}

_set (target, render, content = '') {
this.willRender && this.willRender()

for (const node of target.querySelectorAll(Tonic._tags)) {
if (!node.isTonicComponent) continue

Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class Tonic extends window.HTMLElement {
}

_set (target, render, content = '') {
this.willRender && this.willRender()
for (const node of target.querySelectorAll(Tonic._tags)) {
if (!node.isTonicComponent) continue

Expand Down

0 comments on commit fe7525a

Please sign in to comment.