Bug Tracker

Modify

Ticket #754 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

Error in docs for $.each() callback

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

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

comment:2 Changed 6 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.