Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#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 Rick Waldron)

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 12 years ago by Rick Waldron

Component: unfiledcore
Milestone: 1.next1.7
Owner: set to Rick Waldron
Priority: undecidedlow
Status: newassigned

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

comment:3 Changed 12 years ago by Timmy Willison

comment:4 Changed 12 years ago by Rick Waldron

Description: modified (diff)

so, land mine and yours to get all the work combined hahaha

comment:5 Changed 12 years ago by Timmy Willison

Resolution: fixed
Status: assignedclosed

Allow second argument to be passed to array.indexOf. Fixes #9453.

Changeset: 2e0c9bfd364d990051fc3de94d7abd4194b6ce7d

Note: See TracTickets for help on using tickets.