Cross Reference: /yui3/src/event-custom/HISTORY.md
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
3242fb01284ccdd8fc7850c23c674eb60e24b563Satyen DesaiCustom Event Infrastructure Change History
3242fb01284ccdd8fc7850c23c674eb60e24b563Satyen Desai==========================================
3242fb01284ccdd8fc7850c23c674eb60e24b563Satyen Desai
3242fb01284ccdd8fc7850c23c674eb60e24b563Satyen Desai3.5.0
3242fb01284ccdd8fc7850c23c674eb60e24b563Satyen Desai-----
3242fb01284ccdd8fc7850c23c674eb60e24b563Satyen Desai
3242fb01284ccdd8fc7850c23c674eb60e24b563Satyen Desai * Multiple calls to target.publish({ ... }) now work [Ticket #2531671]
3242fb01284ccdd8fc7850c23c674eb60e24b563Satyen Desai
3.4.1
-----
* onceAfter (added in 3.4.0) now works for array and object signatures.
[Ticket #2531121]
3.4.0
-----
* Custom events published from `Y` no longer bubble by default.
3.3.0
-----
* Undocumented and poorly named `each()` method on EventHandle changed to
`batch()`.
* After listeners for events fired in a `defaultFn` or listener are queued in
the correct order.
* Added `Y.Do.originalRetVal` and `Y.Do.currentRetVal` statics accessible by
`Y.Do.after()` subscribers.
* Exposed the previously private `EventTarget.parseType`.
3.2.0
-----
* Fixed `defaultTargetOnly` publish configuration.
* `detach()` now decrements `subCount`/`afterCount`.
* Detaching via category no longer affects subscriptions on other objects.
3.1.1
-----
* No changes.
3.1.0
-----
* Wildcard prefix subscriptions supported: `target.on('*:click', …)` will be
notified when `tree:click`, `tab:click`, etc are fired.
* Added `EventTarget::once`, which is equivalent to `on()`, except the
listener automatically detaches itself once executed.
* Added event monitoring. When configured, an `EventTarget` will emit events
for `publish()`, `attach()`, `fire()`, and `detach()` operations on the
hosted events.
* `EventTarget::on`'s `type` parameter is overloaded to accept arrays and
objects for attaching multiple types at once.
* `EventTarget::detach` returns the event target like the API docs already
stated.
* Events can now be configured to execute the `defaultFn` only on the targeted
object, not on the bubble targets.
* The event order has been reworked so that the after listeners for the entire
event stack execute after all `defaultFn` across the entire bubble stack.
3.0.0
-----
* Broken into core base and complex modules.
* `broadcast` works for simple events.
* If configured to return an `EventHandle`, the return value will always be a
single object, regardless of how many listeners were attached. Previously,
multiple listeners provided an array of detach handles.
3.0.0beta1
----------
* [!] Exposed methods are `on()` for the before moment, `after()` for the
after moment, and `detach()` for unsubscribe. `subscribe()`, `before()`,
`unsubscribe()`, and corresponding methods are deprecated.
* Implemented the `broadcast` flag:
* `broadcast = 1`: local, accessible via `Y.on('prefix:event')`.
* `broadcast = 2`: global, accessible via `Y.on()` or globally via
`Y.Global.on('prefix:event')`.
Broadcast listeners cannot effect the `defaultFn` or host subscribers (so
are in effect, after listeners), although this is still possible by added
either `Y` or `Y.Global` as `EventTarget`s.
* Moved `event-custom` out of `event` package.
* `EventTarget` accepts a `prefix` configuration. This is used in all exposed
methods to handle shortcuts to event names, e.g., `'click'` and
`'menu:click'` are the same if the prefix is `'menu'`.
* Event type accepts a event category which can be used to detach events:
Y.on('category|prefix:event', fn);
Y.detach('category|prefix:event');
Y.detach('category|*');
* Added `chain` config to events that makes the return value the event target
rather than a detach handle. Use with the detach category prefix.
* The `type` parameter can be an object containing multiple events to attach:
Y.on({ 'event1': fn1, 'event2': fn2 });
* `Y.fire` payload for event facades can be another facade or a custom event.