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 comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Changed June 30, 2008 04:18PM UTC by comment:2
resolution: | invalid |
---|---|
status: | closed → reopened |
Changed June 30, 2008 04:18PM UTC by comment:3
owner: | → flesler |
---|---|
status: | reopened → new |
Changed June 30, 2008 04:19PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | new → closed |
Applied the change at [5754].
Changed August 08, 2008 03:47AM UTC by comment:5
resolution: | fixed |
---|---|
status: | closed → reopened |
Changed August 08, 2008 03:48AM UTC by comment:7
resolution: | → duplicate |
---|---|
status: | reopened → closed |
http://docs.jquery.com/Traversing/eq#index
The index must be a number, that's how it's described on the docs.