Skip to content
Myr

Removed outdated (untrue) API docs - chaining was removed in 53a44d8 (#44)

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

authored by Mateusz Burzyński · committed by Charlike Mike Reagent · parent d728e90 · Browse files · 2 files+0 added−9 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+0 added−9 removed

  • other:+0 added−9 removed

2 files+0 added−9 removed

modified:src/index.js-3 removed
modified:README.md-6 removed
106 unmodified lines
107108- `type` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The event type to invoke109- `evt` **\[Any]** Any value (object is recommended and powerful), passed to each handler110111Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the `mitt` instance for chaining112111### on112113Register an event handler for the given type.114
1 unmodified line
116117- `type` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Type of event to listen for, or `"*"` for all events118- `handler` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Function to call in response to given event119122Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the `mitt` instance for chaining123120### off121122Remove an event handler for the given type.123
1 unmodified line
125126- `type` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Type of event to unregister `handler` from, or `"*"`127- `handler` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Handler function to remove128133Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the `mitt` instance for chaining134129## Contribute130131First off, thanks for taking the time to contribute!132Now, take a moment to be sure your contributions make sense to everyone else.
29 unmodified lines