~ubuntu-branches/ubuntu/precise/whoopsie-daisy/precise-proposed

« back to all changes in this revision

Viewing changes to backend/stats/static/js/yui/3.4.1/releasenotes/HISTORY.event-custom.md

  • Committer: Package Import Robot
  • Author(s): Evan Dandrea
  • Date: 2012-04-18 13:04:36 UTC
  • Revision ID: package-import@ubuntu.com-20120418130436-vmt93p8fds516lws
Tags: 0.1.32
Fix failing tests on powerpc and ARM.

Show diffs side-by-side

added added

removed removed

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