Skip to main content

Bug Tracker

Side navigation

#3051 closed bug (duplicate)

Opened June 16, 2008 08:28PM UTC

Closed August 08, 2008 03:48AM UTC

jquery.eq() acts strange when passed a string

Reported by: nickmcclellan Owned by: flesler
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:
Description

From 1.2.6 source:

443 eq: function( i ) {

444 return this.slice( i, i + 1 );

445 }

This works fine when passed an integer. Selects a range when passed a string. For example:

.eq("1")

passes ("1", "11") to slice instead of (1, 2).

Attachments (0)
Change History (7)

Changed June 17, 2008 08:03PM UTC by flesler comment:1

resolution: → invalid
status: newclosed

http://docs.jquery.com/Traversing/eq#index

The index must be a number, that's how it's described on the docs.

Changed June 30, 2008 04:18PM UTC by flesler comment:2

resolution: invalid
status: closedreopened

Changed June 30, 2008 04:18PM UTC by flesler comment:3

owner: → flesler
status: reopenednew

Changed June 30, 2008 04:19PM UTC by flesler comment:4

resolution: → fixed
status: newclosed

Applied the change at [5754].

Changed August 08, 2008 03:47AM UTC by flesler comment:5

resolution: fixed
status: closedreopened

Changed August 08, 2008 03:47AM UTC by flesler comment:6

Duplicate of #3102.

Changed August 08, 2008 03:48AM UTC by flesler comment:7

resolution: → duplicate
status: reopenedclosed