We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83b7de0 commit b0a86b9Copy full SHA for b0a86b9
2-ui/2-events/01-introduction-browser-events/article.md
@@ -373,7 +373,7 @@ For instance:
373
374
As we can see, when `addEventListener` receives an object as the handler, it calls `obj.handleEvent(event)` in case of an event.
375
376
-We could also use a class (although we still have to instantiate it as an object):
+We could also use objects of a custom class, like this:
377
378
379
```html run
@@ -395,6 +395,7 @@ We could also use a class (although we still have to instantiate it as an object
395
396
*!*
397
let menu = new Menu();
398
+
399
elem.addEventListener('mousedown', menu);
400
elem.addEventListener('mouseup', menu);
401
*/!*
0 commit comments