mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Core: Fix comments for .get() method
Closes gh-1547
This commit is contained in:
parent
9ad6e7e93e
commit
ca0086b55a
@ -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>
|
||||
|
||||
|
@ -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 );
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user