synth-example-source.mustache revision 350964af8dfc6ab5df9d3fb0f274f7d018986c5b
5895N/A <p>Step 1. <button type="button" id="attach" tabindex="1">subscribe</button> to the <code>arrow</code> event.<br>
5895N/A Y.Event.define("arrow", {
6125N/A notifier.fire(e);
6255N/A sub._delegateDetacher = node.delegate(this._event, this._keyHandler,
5895N/A var xy = this.getData();
5895N/A switch (e.direction) {
top : (xy.y + 'px'),
left: (xy.x + 'px'),
subs.detach();
Y.one("#attach").on("click", function (e) {
if (Y.one("#delegate").get('checked')) {
subs = Y.one('#demo').delegate('arrow', move, '.robot');
subs = new Y.EventHandle([
robotA.on("arrow", move),
robotB.on("arrow", move)
Y.one("#detach").on("click", detachSubs);