Merge pull request #2028 from peachesontour/patch-1

Typo
This commit is contained in:
Ilya Kantor 2020-07-25 13:25:38 +03:00 committed by GitHub
commit b0464bb32c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -236,7 +236,7 @@ element.removeEventListener(event, handler, [options]);
````warn header="Removal requires the same function" ````warn header="Removal requires the same function"
To remove a handler we should pass exactly the same function as was assigned. To remove a handler we should pass exactly the same function as was assigned.
That doesn't work: This doesn't work:
```js no-beautify ```js no-beautify
elem.addEventListener( "click" , () => alert('Thanks!')); elem.addEventListener( "click" , () => alert('Thanks!'));