git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c9dd7c
)
Changed .get(-Number) to use .slice() instead of .toArray() (which doesn't take any...
author
John Resig
<jeresig@gmail.com>
Thu, 23 Jul 2009 22:38:29 +0000
(22:38 +0000)
committer
John Resig
<jeresig@gmail.com>
Thu, 23 Jul 2009 22:38:29 +0000
(22:38 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
7281b44
..
cb9b528
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-141,7
+141,7
@@
jQuery.fn = jQuery.prototype = {
this.toArray() :
// Return just the object
- ( num < 0 ? this.toArray(num)[ 0 ] : this[ num ] );
+ ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
},
// Take an array of elements and push it onto the stack