Skip to content

Commit 0949cc1

Browse files
authored
Merge pull request #1616 from javascript-tutorial/paroche-patch-10
Update article.md
2 parents e515f80 + 2e73505 commit 0949cc1

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

Lines changed: 1 addition & 1 deletion
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)