Skip to content

Commit

Permalink
docs: erro no exemplo do codigo
Browse files Browse the repository at this point in the history
  • Loading branch information
deMGoncalves committed Oct 7, 2024
1 parent bcd7cb2 commit 71680cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ class Counter extends HTMLElement {
return (this.#number ??= 0);
}

@repaint
set number(value) {
this.#number = value;
this.requestUpdate();
}

@on.click('button')
@repaint
increment() {
this.number += 1;
return this;
Expand Down
3 changes: 1 addition & 2 deletions src/adopted/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,12 @@ class Counter extends HTMLElement {
return (this.#number ??= 0);
}

@repaint
set number(value) {
this.#number = value;
this.requestUpdate();
}

@on.click('button')
@repaint
increment() {
this.number += 1;
return this;
Expand Down

0 comments on commit 71680cc

Please sign in to comment.