Skip to content

Commit 4c198d1

Browse files
committed
refactor: isInit 플래스 변수 삭제
1 parent 474710e commit 4c198d1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/TodoForm.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
export default class TodoForm {
33
private readonly $form = document.createElement("form");
4-
private isInit = false;
54

65
constructor(
76
private readonly $target: HTMLElement,
@@ -17,8 +16,6 @@ export default class TodoForm {
1716
<button>추가</button>
1817
`;
1918

20-
if (this.isInit) return;
21-
2219
this.$form.addEventListener("submit", (e) => {
2320
e.preventDefault();
2421
const $todo = this.$form.querySelector<HTMLInputElement>("input[name=todo]");

0 commit comments

Comments
 (0)