Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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:


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

Change History (1)

comment:1 Changed 16 years ago by john

Resolution: fixed
Status: newclosed

Fixed in the wiki, we'll move it back in to the real docs.

Note: See TracTickets for help on using tickets.