Skip to main content

Bug Tracker

Side navigation

#11869 closed bug (invalid)

Opened June 06, 2012 07:43PM UTC

Closed June 06, 2012 07:44PM UTC

Last modified June 06, 2012 07:53PM UTC

Using $.each to iterate in a object with a number key is converting to string on callback

Reported by: jquery@fagnermartins.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsfiddle.net/7Tr3V/

I think I do expect a number in the first argument instead of a string, right?

Attachments (0)
Change History (3)

Changed June 06, 2012 07:44PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Nope. Keys are always strings. Blame ECMA if you must.

Changed June 06, 2012 07:49PM UTC by rwaldron comment:2

Blitzed!

Changed June 06, 2012 07:53PM UTC by dmethvin comment:3

#11870 is a duplicate of this ticket.