Must attach the .selector to the new jQuery object.

This commit is contained in:
Dave Methvin 2012-11-01 21:40:01 -04:00
parent f651bf8893
commit 68f001e709

View File

@ -31,8 +31,9 @@ jQuery.fn.extend({
}
// Needed because $( selector, context ) becomes $( context ).find( selector )
ret = this.pushStack( jQuery.unique( ret ) );
ret.selector = ( this.selector ? this.selector + " " : "" ) + selector;
return this.pushStack( jQuery.unique( ret ) );
return ret;
},
has: function( target ) {