From ca0086b55a158d8a4347f94254878d6dc5dd90ed 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 --- AUTHORS.txt | 2 ++ src/core.js | 4 ++-- 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 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 ); },