You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,8 +108,6 @@ If present, `"*"` handlers are invoked prior to type-matched handlers.
108
108
-`type`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The event type to invoke
109
109
-`evt`**\[Any]** Any value (object is recommended and powerful), passed to each handler
110
110
111
-
Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the `mitt` instance for chaining
112
-
113
111
### on
114
112
115
113
Register an event handler for the given type.
@@ -119,8 +117,6 @@ Register an event handler for the given type.
119
117
-`type`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Type of event to listen for, or `"*"` for all events
120
118
-`handler`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Function to call in response to given event
121
119
122
-
Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the `mitt` instance for chaining
123
-
124
120
### off
125
121
126
122
Remove an event handler for the given type.
@@ -130,8 +126,6 @@ Remove an event handler for the given type.
130
126
-`type`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Type of event to unregister `handler` from, or `"*"`
131
127
-`handler`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Handler function to remove
132
128
133
-
Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the `mitt` instance for chaining
134
-
135
129
## Contribute
136
130
137
131
First off, thanks for taking the time to contribute!
0 commit comments