Skip to content

Commit

Permalink
03-event-delegation: '이벤트 위임' 파트의 개선된 번역 제안
Browse files Browse the repository at this point in the history
원문 "Here’s the improved code:"을 참고하여 더 간결하고 매끄럽게 "개선된 코드는 다음과 같습니다."로 번역 제안
  • Loading branch information
towozy authored and Violet-Bora-Lee committed Dec 29, 2024
1 parent d1361d5 commit 13a1e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2-ui/2-events/03-event-delegation/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function highlight(td) {

따라서 `table.onclick` 핸들러에서 `event.target`을 이용해 클릭 이벤트가 `<td>`안쪽에서 일어났는지 아닌지를 알아내야 합니다.

이런 단점을 고려하여 개선된 코드는 아래와 같습니다.
개선된 코드는 아래와 같습니다.

```js
table.onclick = function(event) {
Expand Down

0 comments on commit 13a1e0c

Please sign in to comment.