Searched refs:delegate (Results 1 - 25 of 81) sorted by relevance

1234

/yui3/src/node/js/
H A Dnode-event-delegate.js4 * @submodule node-event-delegate
19 * to match multiple Nodes for a single event. In this case, the delegate
29 * @method delegate
30 * @param type {String} the event type to delegate
41 Y.Node.prototype.delegate = function(type) {
48 return Y.delegate.apply(Y, args);
/yui3/build/node-event-delegate/
H A Dnode-event-delegate-debug.js1 YUI.add('node-event-delegate', function(Y) {
6 * @submodule node-event-delegate
21 * to match multiple Nodes for a single event. In this case, the delegate
31 * @method delegate
32 * @param type {String} the event type to delegate
43 Y.Node.prototype.delegate = function(type) {
50 return Y.delegate.apply(Y, args);
54 }, '@VERSION@' ,{requires:['node-base', 'event-delegate']});
/yui3/src/sortable/tests/
H A Dsortable-tests.js41 var _1len = sort.delegate.dd.get('groups').length,
42 _2len = sort2.delegate.dd.get('groups').length;
45 var _1len2 = sort.delegate.dd.get('groups').length,
46 _2len2 = sort2.delegate.dd.get('groups').length;
53 var _1len = sort.delegate.dd.get('groups').length,
54 _2len = sort2.delegate.dd.get('groups').length;
57 var _1len2 = sort.delegate.dd.get('groups').length,
58 _2len2 = sort2.delegate.dd.get('groups').length;
65 var _1len = sort.delegate.dd.get('groups').length,
66 _2len = sort2.delegate
[all...]
/yui3/build/event-delegate/
H A Devent-delegate-debug.js1 YUI.add('event-delegate', function(Y) {
7 * @submodule event-delegate
30 * to match multiple Nodes for a single event. In this case, the delegate
40 * @method delegate
41 * @param type {String} the event type to delegate
54 function delegate(type, fn, el, filter) {
59 // Support Y.delegate({ click: fnA, key: fnB }, el, filter, ...);
60 // and Y.delegate(['click', 'key'], fn, el, filter, ...);
67 handles.push(Y.delegate.apply(Y, args));
70 // Y.delegate({'clic
[all...]
/yui3/build/event-move/
H A Devent-move-debug.js52 _defArgsProcessor = function(se, args, delegate) {
53 var iConfig = (delegate) ? 4 : 3,
95 * which button should initiate a "gesturemovestart". This event can also be listened for using node.delegate().
98 * however if you want to pass the context and arguments as additional signature arguments to on/delegate,
134 delegate : function(node, subscriber, ce, filter) {
138 subscriber[_DEL_MOVE_START_HANDLE] = node.delegate(EVENT[START],
163 processArgs : function(args, delegate) {
164 var params = _defArgsProcessor(this, args, delegate);
177 _onStart : function(e, node, subscriber, ce, delegate) {
179 if (delegate) {
[all...]
/yui3/src/event-gestures/js/
H A DMove.js50 _defArgsProcessor = function(se, args, delegate) {
51 var iConfig = (delegate) ? 4 : 3,
93 * which button should initiate a "gesturemovestart". This event can also be listened for using node.delegate().
96 * however if you want to pass the context and arguments as additional signature arguments to on/delegate,
132 delegate : function(node, subscriber, ce, filter) {
136 subscriber[_DEL_MOVE_START_HANDLE] = node.delegate(EVENT[START],
161 processArgs : function(args, delegate) {
162 var params = _defArgsProcessor(this, args, delegate);
175 _onStart : function(e, node, subscriber, ce, delegate) {
177 if (delegate) {
[all...]
/yui3/src/event/docs/assets/
H A Dcheckbox.js19 this.delegate("keydown", onCheckboxKeyDown, ".yui3-checkbox");
20 this.delegate("click", onCheckboxClick, ".yui3-checkbox");
21 this.delegate("blur", onCheckboxBlur, "input[type=checkbox]");
30 this.delegate("mouseover", onCheckboxMouseOver, ".yui3-checkbox");
31 this.delegate("mouseout", onCheckboxMouseOut, ".yui3-checkbox-active");
302 Y.delegate("mousedown", onCheckboxMouseDown, "#checkboxes", ".yui3-checkbox,label");
303 Y.delegate("focus", onCheckboxFocus, "#checkboxes", "input[type=checkbox]");
/yui3/src/event/js/
H A Ddelegate.js5 * @submodule event-delegate
28 * to match multiple Nodes for a single event. In this case, the delegate
38 * @method delegate
39 * @param type {String} the event type to delegate
52 function delegate(type, fn, el, filter) { function
57 // Support Y.delegate({ click: fnA, key: fnB }, el, filter, ...);
58 // and Y.delegate(['click', 'key'], fn, el, filter, ...);
65 handles.push(Y.delegate.apply(Y, args));
68 // Y.delegate({'click', fn}, el, filter) =>
69 // Y.delegate('clic
[all...]
H A Doutside.js80 delegate: function (node, sub, notifier, filter) {
81 sub.handle = Y.one('doc').delegate(event, function (e) {
H A Dsynthetic.js21 * <code>delegate(node, sub, notifier, filter)</code> methods.</p>
27 * on(..) or delegate(..)
47 * <p>For notifiers provided to delegate logic, the first argument should be an
63 // first arg to delegate notifier should be an object with currentTarget
69 delegate = sub.filter,
88 if (delegate) {
91 } else if (delegate && isObject(e) && e.currentTarget) {
100 // Useful for delegate implementations
298 * <code>on()</code> and <code>delegate()</code>. The second parameter
300 * <code>delegate()</cod
[all...]
H A Dhover.js7 * node.delegate("hover", overFn, outFn, ".filterSelector");
9 * Y.delegate("hover", overFn, outFn, "#container", ".filterSelector");
16 * Y.delegate("hover", overFn, "#container", outFn, ".filterSelector");
26 // Y.delegate('hover', over, out, '#container', '.filter')
28 // node.delegate('hover', over, out, '.filter')
40 sub._detach = node[(filter) ? "delegate" : "on"]({
62 conf.delegate = conf.on;
H A Dfocusblur.js19 _attach: function (el, notifier, delegate) {
26 [proxy, this._proxy, el, this, notifier, delegate],
31 _proxy: function (e, notifier, delegate) {
39 notifier.currentTarget = (delegate) ? target : currentTarget;
40 notifier.container = (delegate) ? currentTarget : null;
59 // The delegate subscriptions will be encountered first, which
63 // direct subscription from the delegate sub(s) exists, which
96 // Order the delegate subs by their placement in the parent axis
128 // testing delegate filters.
147 // delegate subscriptio
[all...]
/yui3/build/sortable/
H A Dsortable-debug.js32 * @property delegate
36 delegate: null,
74 this.delegate = del;
146 Y.log('No delegate parent found', 'error', 'sortable');
163 dropsort.delegate.createDrop(newNode, [dropsort.get(ID)]);
184 this.delegate.get('lastNode').setStyle(ZINDEX, '');
185 this.delegate.get(this.get(OPACITY_NODE)).setStyle(OPACITY, this.get(OPACITY));
186 this.delegate.get(CURRENT_NODE).setStyle(ZINDEX, '999');
195 this.delegate.get(this.get(OPACITY_NODE)).setStyle(OPACITY, 1);
196 this.delegate
[all...]
/yui3/src/sortable/js/
H A Dsortable.js30 * @property delegate
34 delegate: null,
72 this.delegate = del;
144 Y.log('No delegate parent found', 'error', 'sortable');
161 dropsort.delegate.createDrop(newNode, [dropsort.get(ID)]);
182 this.delegate.get('lastNode').setStyle(ZINDEX, '');
183 this.delegate.get(this.get(OPACITY_NODE)).setStyle(OPACITY, this.get(OPACITY));
184 this.delegate.get(CURRENT_NODE).setStyle(ZINDEX, '999');
193 this.delegate.get(this.get(OPACITY_NODE)).setStyle(OPACITY, 1);
194 this.delegate
[all...]
H A Dsortable-scroll.js25 host.delegate.on('drop:over', function(e) {
/yui3/src/resize/tests/
H A Dresize-tests.js94 var node = resize.delegate.dd;
100 var node = resize.delegate.dd;
107 var node = resize.delegate.dd;
114 var node = resize.delegate.dd;
121 var node = resize.delegate.dd;
128 var node = resize.delegate.dd;
135 var node = resize.delegate.dd;
142 var node = resize.delegate.dd;
/yui3/build/event-outside/
H A Devent-outside-debug.js75 delegate: function (node, sub, notifier, filter) {
76 sub.handle = Y.one('doc').delegate(event, function (e) {
/yui3/src/event-valuechange/tests/functional/
H A Devent-valuechange-test.js222 .append('<input type="text" id="vc-delegate-a" class="odd">')
223 .append('<input type="text" id="vc-delegate-b" class="even">')
224 .append('<input type="text" id="vc-delegate-c" class="odd">')
225 .append('<textarea id="vc-delegate-d" class="even"></textarea>')
226 .append('<textarea id="vc-delegate-e" class="odd"></textarea>')
227 .append('<textarea id="vc-delegate-f" class="even"></textarea>');
229 this.a = Y.one('#vc-delegate-a');
230 this.b = Y.one('#vc-delegate-b');
231 this.c = Y.one('#vc-delegate-c');
232 this.d = Y.one('#vc-delegate
[all...]
/yui3/build/sortable-scroll/
H A Dsortable-scroll-debug.js27 host.delegate.on('drop:over', function(e) {
/yui3/src/node-focusmanager/docs/assets/
H A Dtabview.js98 // Use the "delegate" custom event to listen for the "click" event
101 tabView.delegate("click", function (event) {
138 tabView.delegate("keydown", function (event) {
175 tabView.delegate("click", function (event) {
185 tabView.delegate("click", function (event) {
/yui3/build/event-synthetic/
H A Devent-synthetic-debug.js23 * <code>delegate(node, sub, notifier, filter)</code> methods.</p>
29 * on(..) or delegate(..)
49 * <p>For notifiers provided to delegate logic, the first argument should be an
65 // first arg to delegate notifier should be an object with currentTarget
71 delegate = sub.filter,
90 if (delegate) {
93 } else if (delegate && isObject(e) && e.currentTarget) {
102 // Useful for delegate implementations
300 * <code>on()</code> and <code>delegate()</code>. The second parameter
302 * <code>delegate()</cod
[all...]
/yui3/build/event-focus/
H A Devent-focus-debug.js21 _attach: function (el, notifier, delegate) {
28 [proxy, this._proxy, el, this, notifier, delegate],
33 _proxy: function (e, notifier, delegate) {
41 notifier.currentTarget = (delegate) ? target : currentTarget;
42 notifier.container = (delegate) ? currentTarget : null;
61 // The delegate subscriptions will be encountered first, which
65 // direct subscription from the delegate sub(s) exists, which
98 // Order the delegate subs by their placement in the parent axis
130 // testing delegate filters.
149 // delegate subscriptio
[all...]
/yui3/src/event/tests/
H A Dmouseenter-tests.js20 handles.push(node.delegate('mouseenter', noop));
21 handles.push(node.delegate('mouseleave', noop));
H A Doutside-tests.js28 'test: delegate': function() {
30 var handle = node.delegate('clickoutside', function(e) {
/yui3/build/event-hover/
H A Devent-hover-debug.js9 * node.delegate("hover", overFn, outFn, ".filterSelector");
11 * Y.delegate("hover", overFn, outFn, "#container", ".filterSelector");
18 * Y.delegate("hover", overFn, "#container", outFn, ".filterSelector");
28 // Y.delegate('hover', over, out, '#container', '.filter')
30 // node.delegate('hover', over, out, '.filter')
42 sub._detach = node[(filter) ? "delegate" : "on"]({
64 conf.delegate = conf.on;

Completed in 107 milliseconds

1234