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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,12 +140,12 @@ Register an event handler for the given type.
140
140
### off
141
141
142
142
Remove an event handler for the given type.
143
-
If omit the `handler`, all event handlers of the given type are deleted.
143
+
If `handler` is omitted, all handlers of the given type are removed.
144
144
145
145
#### Parameters
146
146
147
147
-`type`**([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\|[symbol](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol))** Type of event to unregister `handler` from, or `'*'`
148
-
-`handler`**[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Handler function to remove
148
+
-`handler`**[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** Handler function to remove
0 commit comments