Commit f651bf88 authored by Oleg's avatar Oleg Committed by Dave Methvin

Follow-up for .selector property removal

parent 240b141a
...@@ -231,8 +231,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -231,8 +231,7 @@ jQuery.fn = jQuery.prototype = {
}, },
slice: function() { slice: function() {
return this.pushStack( core_slice.apply( this, arguments ), return this.pushStack( core_slice.apply( this, arguments ) );
"slice", core_slice.call(arguments).join(",") );
}, },
first: function() { first: function() {
......
...@@ -31,9 +31,8 @@ jQuery.fn.extend({ ...@@ -31,9 +31,8 @@ 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 ret; return this.pushStack( jQuery.unique( ret ) );
}, },
has: function( target ) { has: function( target ) {
...@@ -90,9 +89,7 @@ jQuery.fn.extend({ ...@@ -90,9 +89,7 @@ jQuery.fn.extend({
} }
} }
ret = ret.length > 1 ? jQuery.unique( ret ) : ret; return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret );
return this.pushStack( ret );
}, },
// Determine the position of an element within // Determine the position of an element within
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment