git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added .eq(Number) back in - I'm convinced that it's more useful than the .slice(...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
06d2fd7
..
d059564
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-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 ) );
},