event.data Returns: Object
Description: An optional object of data passed to an event method when the current executing handler is bound.
-
version added: 1.1event.data
Example:
Within a for
loop, pass the value of i
to the .on()
method so that the current iteration's value is preserved.
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
29
30
31
32
33
|
|