mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Follow-up for .selector property removal
This commit is contained in:
parent
240b141a22
commit
f651bf8893
@ -36,7 +36,7 @@ var
|
|||||||
// Used for detecting and trimming whitespace
|
// Used for detecting and trimming whitespace
|
||||||
core_rnotwhite = /\S/,
|
core_rnotwhite = /\S/,
|
||||||
core_rspace = /\s+/,
|
core_rspace = /\s+/,
|
||||||
|
|
||||||
// List of deleted data cache ids, so we can reuse them
|
// List of deleted data cache ids, so we can reuse them
|
||||||
core_deletedIds = [],
|
core_deletedIds = [],
|
||||||
|
|
||||||
@ -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() {
|
||||||
@ -493,7 +492,7 @@ jQuery.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( typeof data === "string" ) {
|
if ( typeof data === "string" ) {
|
||||||
|
|
||||||
// Make sure leading/trailing whitespace is removed (IE can't handle it)
|
// Make sure leading/trailing whitespace is removed (IE can't handle it)
|
||||||
data = jQuery.trim( data );
|
data = jQuery.trim( data );
|
||||||
|
|
||||||
|
@ -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({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user