mirror of
https://github.com/jquery/jquery.git
synced 2026-02-18 08:01:36 -05:00
Added .eq(Number) back in - I'm convinced that it's more useful than the .slice() replacement. lt/gt are still gone, though.
This commit is contained in:
@@ -363,6 +363,10 @@ jQuery.fn = jQuery.prototype = {
|
||||
return this.after( val ).remove();
|
||||
},
|
||||
|
||||
eq: function(i){
|
||||
return this.slice(i, i+1);
|
||||
},
|
||||
|
||||
slice: function() {
|
||||
return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user