#754 closed bug (fixed)
Error in docs for $.each() callback
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | 1.1a |
Component: | docs | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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: http://aheimlich.freepgs.com/tests/jquery/each-test/
Change History (2)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in SVN. Docs now don't mention "this" anymore, but only name/index and value.
Note: See
TracTickets for help on using
tickets.
See also http://www.nabble.com/break-in-%24.each-tf2918258.html#a8170211