Skip to content

Commit

Permalink
fix missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsoft committed Feb 19, 2022
1 parent 589d9a8 commit f598d4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ export abstract class Component {
}
setPadding(size: string) {
this.wrapper.style.padding = size;
return this;
}
setMargin(size: string) {
this.wrapper.style.margin = size;
return this;
}
draw() {
return this.wrapper;
Expand Down

0 comments on commit f598d4a

Please sign in to comment.