#9453 closed enhancement (fixed)
$.inArray does not support fromIndex
| Reported by: | Speednet | Owned by: | Rick Waldron |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7 |
| Component: | core | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description (last modified by )
The $.inArray() function calls the native JavaScript Array.indexOf() function if it's available, but the native function supports an optional second argument of "fromIndex". (See [
The fromIndex argument is very useful, and could be easily added without impacting any existing code from previous versions of jQuery.
Thanks!
Change History (5)
comment:1 Changed 10 years ago by
| Component: | unfiled → core |
|---|---|
| Milestone: | 1.next → 1.7 |
| Owner: | set to Rick Waldron |
| Priority: | undecided → low |
| Status: | new → assigned |
comment:3 Changed 10 years ago by
Well, I kinda did it too :P. https://github.com/timmywil/jquery/compare/enhancement_9453
comment:4 Changed 10 years ago by
| Description: | modified (diff) |
|---|
so, land mine and yours to get all the work combined hahaha
comment:5 Changed 10 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Allow second argument to be passed to array.indexOf. Fixes #9453.
Changeset: 2e0c9bfd364d990051fc3de94d7abd4194b6ce7d
Note: See
TracTickets for help on using
tickets.

If no one in Bugs, Core or UI is opposed, I think this is a good suggestion for 1.7