The child selector-prefix branch doesn't work with selectors that have a larger depth. Removing for now - will need to re-evaluate in the future.

This commit is contained in:
John Resig 2010-10-12 10:13:00 -04:00
parent 5200194f51
commit 085de84959
2 changed files with 2 additions and 6 deletions

View file

@ -11,11 +11,6 @@ var runtil = /Until$/,
jQuery.fn.extend({
find: function( selector ) {
// Handle "> div" child selectors and pass them to .children()
if ( typeof selector === "string" && rchild.test( selector ) ) {
return this.children( selector.replace( rchild, "$1" ) );
}
var ret = this.pushStack( "", "find", selector ), length = 0;
for ( var i = 0, l = this.length; i < l; i++ ) {