Skip to content

Commit b0a86b9

Browse files
committed
minor fixes
1 parent 83b7de0 commit b0a86b9

File tree

1 file changed

+2
-1
lines changed
  • 2-ui/2-events/01-introduction-browser-events

1 file changed

+2
-1
lines changed

2-ui/2-events/01-introduction-browser-events/article.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ For instance:
373373

374374
As we can see, when `addEventListener` receives an object as the handler, it calls `obj.handleEvent(event)` in case of an event.
375375

376-
We could also use a class (although we still have to instantiate it as an object):
376+
We could also use objects of a custom class, like this:
377377

378378

379379
```html run
@@ -395,6 +395,7 @@ We could also use a class (although we still have to instantiate it as an object
395395
396396
*!*
397397
let menu = new Menu();
398+
398399
elem.addEventListener('mousedown', menu);
399400
elem.addEventListener('mouseup', menu);
400401
*/!*

0 commit comments

Comments
 (0)