Skip to main content

Bug Tracker

Side navigation

#754 closed bug (fixed)

Opened January 05, 2007 08:05PM UTC

Closed January 07, 2007 11:15AM UTC

Last modified June 19, 2007 06:52AM UTC

Error in docs for $.each() callback

Reported by: aaron.heimlich@gmail Owned by:
Priority: major Milestone: 1.1a
Component: docs Version: 1.0
Keywords: Cc:
Blocked by: Blocking:

I recently took a look at the code for $.each and noticed that it passes two arguments to the callback, the name/index of the current item and the item itself (in that order). However, all documentation states that the callback only receives the former as an argument.

Test page:

Attachments (0)
Change History (2)

Changed January 05, 2007 08:06PM UTC by aaron.heimli comment:1

Changed January 07, 2007 11:15AM UTC by joern comment:2

resolution: → fixed
status: newclosed

Fixed in SVN. Docs now don't mention "this" anymore, but only name/index and value.