aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-07-23 22:38:29 +0000
committerJohn Resig <jeresig@gmail.com>2009-07-23 22:38:29 +0000
commit26eda09892459709d224f910038b8f6836bfd012 (patch)
tree8a01c9468d8f670cda798a7311805a31f15a1765 /src
parent9c9dd7cedea56a350d49ddcdf0982be9fcb6bad2 (diff)
downloadjquery-26eda09892459709d224f910038b8f6836bfd012.tar.gz
jquery-26eda09892459709d224f910038b8f6836bfd012.zip
Changed .get(-Number) to use .slice() instead of .toArray() (which doesn't take any arguments). Follow-up from commit [6484].
Diffstat (limited to 'src')
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index 7281b44fe..cb9b528ec 100644
--- 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