Bug Tracker

Opened 13 years ago

Closed 13 years ago

#813 closed enhancement (invalid)

Enhance filter(Function) to pass index

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

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 (1)

comment:1 Changed 13 years ago by joern

Resolution: invalid
Status: newclosed

already supported

Note: See TracTickets for help on using tickets.