diff --git a/AUTHORS.txt b/AUTHORS.txt index 9c734c4ef..9bda6ee1d 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -208,3 +208,5 @@ Forbes Lindesay John Paul S. Andrew Sheppard Roman Reiß +Benjy Cui + diff --git a/src/core.js b/src/core.js index f09d872b2..d3501041e 100644 --- a/src/core.js +++ b/src/core.js @@ -54,10 +54,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 ); },