tracker issue : CF-3039331

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 78870:Ability to var scope on for loops or collection loops inline

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Luis Majano / Luis Majano (Luis Majano)

Created: 07/16/2009

Components: Language

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 15

Problem:

Ability to var scope on for loops or collection loops inline.  This would save soo much time by just inlinining var scoping of variables within statements like for loops.for( var key in collection ){}for( var x =1; x lte len; x++ ){}
Method:


Result:

Ability to var scope on for loops or collection loops inline.for( var key in collection ){}

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3039331

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Luis Majano
External Customer Email: 7A3D2E124563615A99201549
External Test Config: 07/16/2009

Attachments:

Comments:

+1 vote. It would be handy if it works this way. That said, one can just initialise the variable there by using the local scope, but I'd still prefer to VAR it. -- Adam
Vote by External U.
23358 | November 10, 2011 06:58:58 PM GMT
This bug has been voted..
Vote by External U.
23359 | November 10, 2011 06:58:59 PM GMT
This bug has been voted..
Vote by External U.
23360 | November 10, 2011 06:59:00 PM GMT
This bug has been voted..
Vote by External U.
23361 | November 10, 2011 06:59:01 PM GMT
This bug has been voted..
Vote by External U.
23362 | November 10, 2011 06:59:02 PM GMT
This bug has been voted..
Vote by External U.
23363 | November 10, 2011 06:59:03 PM GMT
This bug has been voted..
Vote by External U.
23364 | November 10, 2011 06:59:04 PM GMT
This bug has been voted..
Vote by External U.
23365 | November 10, 2011 06:59:05 PM GMT
This bug has been voted..
Vote by External U.
23366 | November 10, 2011 06:59:06 PM GMT
This bug has been voted..
Vote by External U.
23367 | November 10, 2011 06:59:07 PM GMT
Adobe fixed this for var i=1 type loops, but not for(var k in struct).
Vote by External U.
23368 | November 10, 2011 06:59:08 PM GMT
This bug has been voted..
Vote by External U.
23369 | November 10, 2011 06:59:10 PM GMT
the struct key version would be very useful
Vote by External U.
23370 | November 10, 2011 06:59:11 PM GMT
This bug has been voted..
Vote by External U.
23371 | November 10, 2011 06:59:13 PM GMT
This bug has been voted..
Vote by External U.
23372 | November 10, 2011 06:59:15 PM GMT