Status/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): Chris Phillips / Chris Phillips (cf_chris)
Created: 06/09/2014
Components: Language
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Windows 7 64-bit
Vote Count: 5
Almost all of our work in CF is in script components. In the rare case I am in a display template and I need a new variable, I inevitably type "var foo =" and get a compiler error. This is lame. Please translate "var foo = 1" outside of functions to "variables.foo = 1". This will essentially make it equivalent to "foo = 1". Which is exactly what I am expecting.
This would be similar to how "var foo = 1" outside of a function in JavaScript would put "foo" into the window scope (making it essentially "foo = 1").
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3773095
External Customer Info:
External Company:
External Customer Name: cf_chris
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: