diff options
| author | Jason Miller <[email protected]> | 2020-02-21 11:49:20 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-21 11:49:20 -0500 |
| commit | 32145f3cb76c668af1c172fa9cea5ab102ecf565 (patch) | |
| tree | 8ce5a835c3574cae3849ff6aa635c044bd6055e6 | |
| parent | b4167179150951a56adf63367b49da5b311b0557 (diff) | |
Add note about manually firing "*" handlers
| -rw-r--r-- | src/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index 116b7d8..d9b36f8 100644 --- a/src/index.js +++ b/src/index.js @@ -49,6 +49,8 @@ export default function mitt(all: EventHandlerMap) { * Invoke all handlers for the given type. * If present, `"*"` handlers are invoked after type-matched handlers. * + * Note: Manually firing "*" handlers is not supported. + * * @param {String} type The event type to invoke * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler * @memberOf mitt |
