aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AUTHORS.txt2
-rw-r--r--src/core.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/AUTHORS.txt b/AUTHORS.txt
index 0aff9194c..954e97afe 100644
--- a/AUTHORS.txt
+++ b/AUTHORS.txt
@@ -217,3 +217,5 @@ Christopher Jones <chris@cjqed.com>
Forbes Lindesay <forbes@lindesay.co.uk>
S. Andrew Sheppard <andrew@wq.io>
Roman Reiß <me@silverwind.io>
+Benjy Cui <benjytrys@gmail.com>
+
diff --git a/src/core.js b/src/core.js
index c494d7a60..b520b5930 100644
--- a/src/core.js
+++ b/src/core.js
@@ -57,10 +57,10 @@ jQuery.fn = jQuery.prototype = {
get: function( num ) {
return num != null ?
- // Return a 'clean' array
+ // Return just the one element from the set
( num < 0 ? this[ num + this.length ] : this[ num ] ) :
- // Return just the object
+ // Return all the elements in a clean array
slice.call( this );
},