Skip to content
Myr

Fix the format and update the off API

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sealice · committed by sealice · parent 5f2ccef · Browse files · 2 files+8 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−5 removed

  • other:+8 added−5 removed

2 files+8 added−5 removed

modified:src/index.ts+7 added-5 removed
modified:README.md+1 added
130 unmodified lines
131132### off133134Remove an event handler for the given type.135If omit the `handler`, all event handlers of the given type are deleted.136137#### Parameters138139- `type` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [symbol](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol))** Type of event to unregister `handler` from, or `"*"`
41 unmodified lines