Bug Tracker

Modify

Ticket #813 (closed enhancement: invalid)

Opened 6 years ago

Last modified 6 years ago

Enhance filter(Function) to pass index

Reported by: joern Owned by:
Priority: minor Milestone:
Component: core Version:
Keywords: Cc:
Blocking: Blocked by:

Description

By passing the index as an argument to the filter callback, you could do something like this:

$(...).filter("id", function(i) {
  return "foobar" + i;
});

Can be quite useful (see mailing lis, "Update to 1.1 question" by Olaf Bosch) and should be very easy to implement.

Change History

comment:1 Changed 6 years ago by joern

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

already supported

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.