callbacks.has( [callback ] )Returns: Boolean
Description: 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.
-
version added: 1.7callbacks.has( [callback ] )
-
callbackType: Function()The callback to search for.
-
Example:
Use callbacks.has()
to check if a callback list contains a specific callback:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
|