Follow-up for .selector property removal

This commit is contained in:
Oleg 2012-11-02 04:36:48 +04:00 committed by Dave Methvin
parent 240b141a22
commit f651bf8893
2 changed files with 5 additions and 9 deletions

View File

@ -231,8 +231,7 @@ jQuery.fn = jQuery.prototype = {
},
slice: function() {
return this.pushStack( core_slice.apply( this, arguments ),
"slice", core_slice.call(arguments).join(",") );
return this.pushStack( core_slice.apply( this, arguments ) );
},
first: function() {

View File

@ -31,9 +31,8 @@ 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 ret;
return this.pushStack( jQuery.unique( ret ) );
},
has: function( target ) {
@ -90,9 +89,7 @@ jQuery.fn.extend({
}
}
ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
return this.pushStack( ret );
return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret );
},
// Determine the position of an element within