mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 23:45:06 -05:00
Core: Fix comments for .get() method
Closes gh-1547
(cherry picked from commit ca0086b55a)
This commit is contained in:
@@ -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 );
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user