Core: Fix comments for .get() method

Closes gh-1547
This commit is contained in:
Benjy Cui 2014-03-18 17:15:58 +08:00 committed by Dave Methvin
parent 9ad6e7e93e
commit ca0086b55a
2 changed files with 4 additions and 2 deletions

View File

@ -217,3 +217,5 @@ Christopher Jones <chris@cjqed.com>
Forbes Lindesay <forbes@lindesay.co.uk>
S. Andrew Sheppard <andrew@wq.io>
Roman Reiß <me@silverwind.io>
Benjy Cui <benjytrys@gmail.com>

View File

@ -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 );
},