#938 closed bug (fixed)
Small description correction: get(n) returns a single element, not an array
Reported by: | Ralf S. Engelschall | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.1 |
Component: | core | Version: | 1.1 |
Keywords: | get | Cc: | |
Blocked by: | Blocking: |
Description
Just a small correction to the description of "get": get(n) returns a single element, not an array. Without this fix it is rather confusing and hard to determine what the actual difference is between eq(n) and get(n).
Index: src/jquery/jquery.js =================================================================== --- src/jquery/jquery.js (revision 1304) +++ src/jquery/jquery.js (working copy) @@ -225,7 +225,7 @@ * * @example $("img").get(0); * @before <img src="test1.jpg"/> <img src="test2.jpg"/> - * @result [ <img src="test1.jpg"/> ] + * @result <img src="test1.jpg"/> * @desc Selects all images in the document and returns the first one * * @name get
Note: See
TracTickets for help on using
tickets.
Fixed in the wiki, we'll move it back in to the real docs.