[AC-2584] Using objects as array items causes syntax error in .tss
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-22T17:26:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Studio |
Labels | n/a |
Reporter | levani |
Assignee | Daniel Sefton |
Created | 2013-07-22T16:29:16.000+0000 |
Updated | 2016-03-08T07:41:39.000+0000 |
Description
The following code inside .tss file causes syntax error, because there are object literals used as array items for the 'colors' key:
"#footer": {
bottom: 0,
height: '46dp',
width: Ti.UI.FILL,
backgroundGradient: {
type: "linear",
startPoint: { x: "0%", y:"0%"},
endPoint: { x: "0%", y:"100%"},
colors: [
{ color: "#a00", offset: 0.0 },
{ color: "#800", offset: 1.0 }
]
}
}
Issue is fixed in 3.1.2 - closing as duplicate of TISTUD-4525.