Skip to main content

Bug Tracker

Side navigation

#13673 closed feature (wontfix)

Opened March 27, 2013 07:09AM UTC

Closed March 27, 2013 01:58PM UTC

some proposals on method "index"

Reported by: GolubevS79@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

1) .index( selector ) - add variant in which elements set precedes method call; i.e. now it works $("li.myClass").index("li"), and suggested variant - $("li").index("li.myClass");

2) .index (element) - update this variant to allow elements array; i.e. now it works $("li").index(document.getElementsByClassName("myClass")[0]), and updated variant - $("li").index(document.getElementsByClassName("myClass")) (only first element of array would be considered)

Sorry for my english :)

Attachments (0)
Change History (2)

Changed March 27, 2013 07:29AM UTC by GolubevS79@gmail.com comment:1

My first proposal has to be removed due to the same method signature

Changed March 27, 2013 01:58PM UTC by rwaldron comment:2

resolution: → wontfix
status: newclosed

Thanks for the contributions! jQuery will not be adding or modifying the API surface in the foreseeable future