Commit 17d8df8e authored by Benjy Cui's avatar Benjy Cui Committed by Dave Methvin

Core: Fix comments for .get() method

Closes gh-1547
(cherry picked from commit ca0086b5)
parent c51f9f76
...@@ -208,3 +208,5 @@ Forbes Lindesay <forbes@lindesay.co.uk> ...@@ -208,3 +208,5 @@ Forbes Lindesay <forbes@lindesay.co.uk>
John Paul <john@johnkpaul.com> John Paul <john@johnkpaul.com>
S. Andrew Sheppard <andrew@wq.io> S. Andrew Sheppard <andrew@wq.io>
Roman Reiß <me@silverwind.io> Roman Reiß <me@silverwind.io>
Benjy Cui <benjytrys@gmail.com>
...@@ -54,10 +54,10 @@ jQuery.fn = jQuery.prototype = { ...@@ -54,10 +54,10 @@ jQuery.fn = jQuery.prototype = {
get: function( num ) { get: function( num ) {
return num != null ? return num != null ?
// Return a 'clean' array // Return just the one element from the set
( num < 0 ? this[ num + this.length ] : this[ num ] ) : ( num < 0 ? this[ num + this.length ] : this[ num ] ) :
// Return just the object // Return all the elements in a clean array
slice.call( this ); slice.call( this );
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment