From 17d8df8eec5a11d290d7b8cdbbb7247d2cdb7633 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Tue, 18 Mar 2014 17:15:58 +0800 Subject: [PATCH] Core: Fix comments for .get() method Closes gh-1547 (cherry picked from commit ca0086b55a158d8a4347f94254878d6dc5dd90ed) --- AUTHORS.txt | 2 ++ src/core.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 ); },