Skip to content

Commit 6f40df9

Browse files
linusthe3rdkswedberg
authored andcommitted
callbacks.has(): Make argument optional and clarify description. Closes #453
1 parent a1e3a17 commit 6f40df9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/callbacks.has.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<title>callbacks.has()</title>
44
<signature>
55
<added>1.7</added>
6-
<argument name="callback" type="Function">
6+
<argument name="callback" type="Function" optional="true">
77
<desc>The callback to search for.</desc>
88
</argument>
99
</signature>
10-
<desc>Determine whether a supplied callback is in a list</desc>
10+
<desc>Determine whether or not the list has any callbacks attached. If a callback is provided as an argument, determine whether it is in a list.</desc>
1111
<longdesc/>
1212
<example>
1313
<desc>Use <code>callbacks.has()</code> to check if a callback list contains a specific callback:</desc>

0 commit comments

Comments
 (0)