diff options
| author | Mateusz BurzyĆski <[email protected]> | 2017-03-09 19:27:10 +0100 |
|---|---|---|
| committer | Charlike Mike Reagent <[email protected]> | 2017-03-09 20:27:10 +0200 |
| commit | 09a9df0991d3df36b29dce07a8e2289ed2f3eb23 (patch) | |
| tree | 63233415cb355ddc2863353c7027bc75e6b96a5c /src | |
| parent | d728e9087612c3c3b0dc311a09468ee155b51c1d (diff) | |
Removed outdated (untrue) API docs - chaining was removed in 53a44d8 (#44)
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/index.js b/src/index.js index 92b19f9..92ae0d8 100644 --- a/src/index.js +++ b/src/index.js @@ -22,7 +22,6 @@ export default function mitt(all: EventHandlerMap) { * * @param {String} type Type of event to listen for, or `"*"` for all events * @param {Function} handler Function to call in response to given event - * @return {Object} the `mitt` instance for chaining * @memberOf mitt */ on(type: string, handler: EventHandler) { @@ -34,7 +33,6 @@ export default function mitt(all: EventHandlerMap) { * * @param {String} type Type of event to unregister `handler` from, or `"*"` * @param {Function} handler Handler function to remove - * @return {Object} the `mitt` instance for chaining * @memberOf mitt */ off(type: string, handler: EventHandler) { @@ -48,7 +46,6 @@ export default function mitt(all: EventHandlerMap) { * * @param {String} type The event type to invoke * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler - * @return {Object} the `mitt` instance for chaining * @memberof mitt */ emit(type: string, evt: EventHandler) { |
