diff options
author | Benjy Cui <benjytrys@gmail.com> | 2014-03-18 17:15:58 +0800 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-20 12:50:52 -0400 |
commit | ca0086b55a158d8a4347f94254878d6dc5dd90ed (patch) | |
tree | e47ae9adb7390099d1ec52b87fdc18cf2b76aec1 /src | |
parent | 9ad6e7e93e62a27e6ef803fbf46623bca732750f (diff) | |
download | jquery-ca0086b55a158d8a4347f94254878d6dc5dd90ed.tar.gz jquery-ca0086b55a158d8a4347f94254878d6dc5dd90ed.zip |
Core: Fix comments for .get() method
Closes gh-1547
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 4 |
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 ); }, |