Skip to main content

Bug Tracker

Side navigation

#938 closed bug (fixed)

Opened February 09, 2007 09:08AM UTC

Closed February 11, 2007 05:42PM UTC

Last modified June 21, 2007 04:46AM UTC

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
Attachments (0)
Change History (1)

Changed February 11, 2007 05:42PM UTC by john comment:1

resolution: → fixed
status: newclosed

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