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: |
Description
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 comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
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": http://jsfiddle.net/rwaldron/5EuxG/