mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Must attach the .selector to the new jQuery object.
This commit is contained in:
parent
f651bf8893
commit
68f001e709
@ -31,8 +31,9 @@ jQuery.fn.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Needed because $( selector, context ) becomes $( context ).find( selector )
|
// Needed because $( selector, context ) becomes $( context ).find( selector )
|
||||||
|
ret = this.pushStack( jQuery.unique( ret ) );
|
||||||
ret.selector = ( this.selector ? this.selector + " " : "" ) + selector;
|
ret.selector = ( this.selector ? this.selector + " " : "" ) + selector;
|
||||||
return this.pushStack( jQuery.unique( ret ) );
|
return ret;
|
||||||
},
|
},
|
||||||
|
|
||||||
has: function( target ) {
|
has: function( target ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user