Skip to content

Commit 2e73505

Browse files
authored
Update article.md
Rephrasing what does delegation do for us question.
1 parent e515f80 commit 2e73505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/2-events/03-event-delegation/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The handler reads the attribute and executes the method. Take a look at the work
163163

164164
Please note that `this.onClick` is bound to `this` in `(*)`. That's important, because otherwise `this` inside it would reference the DOM element (`elem`), not the `Menu` object, and `this[action]` would not be what we need.
165165

166-
So, what the delegation gives us here?
166+
So, what advantages does delegation give us here?
167167

168168
```compare
169169
+ We don't need to write the code to assign a handler to each button. Just make a method and put it in the markup.

0 commit comments

Comments
 (0)