]> source.dussan.org Git - jquery.git/commitdiff
Core: Fix comments for .get() method
authorBenjy Cui <benjytrys@gmail.com>
Tue, 18 Mar 2014 09:15:58 +0000 (17:15 +0800)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 20 Mar 2014 16:52:22 +0000 (12:52 -0400)
Closes gh-1547
(cherry picked from commit ca0086b55a158d8a4347f94254878d6dc5dd90ed)

AUTHORS.txt
src/core.js

index 9c734c4efc0a10b88d2ac7361e95ee0876db8fe5..9bda6ee1d88eac65ebec80c6cf030ac89b7bcc5f 100644 (file)
@@ -208,3 +208,5 @@ Forbes Lindesay <forbes@lindesay.co.uk>
 John Paul <john@johnkpaul.com>
 S. Andrew Sheppard <andrew@wq.io>
 Roman Reiß <me@silverwind.io>
+Benjy Cui <benjytrys@gmail.com>
+
index f09d872b22f2771ea42101475faf9f44a9988262..d3501041ede6919ae7a532e621f5a45209359b74 100644 (file)
@@ -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 );
        },