Merge pull request #578 from vvnc/patch-3

Fix a typo
This commit is contained in:
Ilya Kantor 2018-11-03 19:32:09 +03:00 committed by GitHub
commit 2667c87c6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,7 +269,7 @@ To generate an event, we first need to create an event object.
The generic `Event(name, options)` constructor accepts an arbitrary event name and the `options` object with two properties:
- `bubbles: true` if the event should bubble.
- `cancelable: true` is the `event.preventDefault()` should work.
- `cancelable: true` if the `event.preventDefault()` should work.
Other constructors of native events like `MouseEvent`, `KeyboardEvent` and so on accept properties specific to that event type. For instance, `clientX` for mouse events.