Skip to content

Commit 6515442

Browse files
author
Jakub Freisler
committed
Removed info about preventDefault's NOOP override from README.md since it's no longer the case.
1 parent 7a3de0c commit 6515442

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
> Makes {passive: true} by default when EventListenerOptions are supported
33
44
50 lines snippet that enables [passive event listeners](https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md) by default for some events ([see list below](#targeted-events)). It basically will set **{ passive: true }** automatically every time you declare a new [event listener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener).
5-
Also, you don't need to worry about errors possibly raised by `event.preventDefault()` calls existing in code of yours or some library you use - **default-passive-events** takes care of that by overriding `preventDefault`method with simple [NOOP](https://en.wikipedia.org/wiki/NOP).
65

76
# Installation
87

0 commit comments

Comments
 (0)