delegate.js revision 9f298ce1aa6fec44a47a40d6c358950d3c26ffd0
/**
* 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
}
};