diff --git a/AUTHORS.txt b/AUTHORS.txt index 0aff9194c..954e97afe 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -217,3 +217,5 @@ Christopher Jones Forbes Lindesay S. Andrew Sheppard Roman Reiß +Benjy Cui + 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 ); },