delegate.js revision 3a1493afa5d204a301f770bf1e95318cf9a7bff8
/**
* Set up a delegated listener container.
* @event delegate
* @param type {string} 'delegate'
* @param fn {string} the function to execute
* @param el {string|node} the element that is the delegation container
* @param event {string} the event type to delegate
* @param spec {string} a selector that must match the target of the
* event.
* @param o optional context object
* @param args 0..n additional arguments that should be provided
* to the listener.
* @return {Event.Handle} the detach handle
* @for YUI
*/
a = Y.Array(arguments, 0, true);
// set up the listener on the container
passed = false;
if (targets) {
// @TODO we need Node.some
passed = true;
}
});
}
}, el);
a[0] = ename;
// remove element, delegation event, and delegation spec from the args
// subscribe to the custom event for the delegation spec
}
};