Skip to main content

Bug Tracker

Side navigation

#14431 closed bug (notabug)

Opened October 08, 2013 02:53PM UTC

Closed October 08, 2013 03:14PM UTC

Iterator variable passed as reference?

Reported by: Kindzoku Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:

Hi. Just tried to write pager for my widget and have found this. Sorry in advance, in case this is right behaviour.

Attachments (0)
Change History (1)

Changed October 08, 2013 03:14PM UTC by rwaldron comment:1

resolution: → notabug
status: newclosed

The value is not passed as a reference—it's a primitive. This is not a jQuery bug and it's how JavaScript for-loop vars work. Use jQuery.each to get a properly scoped "i":