Update article.md

'that allow to' -> 'that allow us to'
This commit is contained in:
Peter Roche 2019-11-25 20:50:53 -07:00 committed by GitHub
parent 8bdd11c3dd
commit 69c30d0b95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,7 +207,7 @@ As we can clearly see, `event.stopPropagation()` and `event.preventDefault()` (a
``` ```
```smart header="Nested context menus architecture" ```smart header="Nested context menus architecture"
There are also alternative ways to implement nested context menus. One of them is to have a single global object with a handler for `document.oncontextmenu`, and also methods that allow to store other handlers in it. There are also alternative ways to implement nested context menus. One of them is to have a single global object with a handler for `document.oncontextmenu`, and also methods that allow us to store other handlers in it.
The object will catch any right-click, look through stored handlers and run the appropriate one. The object will catch any right-click, look through stored handlers and run the appropriate one.