callbacks.add( callbacks ) Returns: Callbacks
Description: Add a callback or a collection of callbacks to a callback list.
-
version added: 1.7callbacks.add( callbacks )
-
callbacksA function, or array of functions, that are to be added to the callback list.
-
This method returns the Callbacks object onto which it is attached (this
).
Example
Use callbacks.add()
to add new callbacks to a callback list:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
|