aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorBenjy Cui <benjytrys@gmail.com>2014-03-18 17:15:58 +0800
committerDave Methvin <dave.methvin@gmail.com>2014-03-20 12:50:52 -0400
commitca0086b55a158d8a4347f94254878d6dc5dd90ed (patch)
treee47ae9adb7390099d1ec52b87fdc18cf2b76aec1 /src/core.js
parent9ad6e7e93e62a27e6ef803fbf46623bca732750f (diff)
downloadjquery-ca0086b55a158d8a4347f94254878d6dc5dd90ed.tar.gz
jquery-ca0086b55a158d8a4347f94254878d6dc5dd90ed.zip
Core: Fix comments for .get() method
Closes gh-1547
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js4
1 files changed, 2 insertions, 2 deletions
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 );
},