aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Sikuler <[email protected]>2017-04-14 04:24:52 +0300
committerJason Miller <[email protected]>2017-04-13 21:24:52 -0400
commitcf764a1ca8c13a5ea7d1b34d370ee46e75e635b8 (patch)
treea2068b3c1cb54639dd5402ca10d9d64152023c63
parentc595dfb3df430fce81e877e187a107c8d5d86bc5 (diff)
Change description for emit (fix #49) (#50)
-rw-r--r--README.md2
-rw-r--r--src/index.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 9eea963..57a437b 100644
--- a/README.md
+++ b/README.md
@@ -101,7 +101,7 @@ Returns **Mitt**
#### emit
Invoke all handlers for the given type.
-If present, `"*"` handlers are invoked prior to type-matched handlers.
+If present, `"*"` handlers are invoked after type-matched handlers.
**Parameters**
diff --git a/src/index.js b/src/index.js
index 75fd040..945861f 100644
--- a/src/index.js
+++ b/src/index.js
@@ -42,7 +42,7 @@ export default function mitt(all: EventHandlerMap) {
/**
* Invoke all handlers for the given type.
- * If present, `"*"` handlers are invoked prior to type-matched handlers.
+ * If present, `"*"` handlers are invoked after type-matched handlers.
*
* @param {String} type The event type to invoke
* @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler