Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2584] Using objects as array items causes syntax error in .tss

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-07-22T17:26:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsn/a
Reporterlevani
AssigneeDaniel Sefton
Created2013-07-22T16:29:16.000+0000
Updated2016-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 }
		]
	}
}

Comments

  1. Daniel Sefton 2013-07-22

    Issue is fixed in 3.1.2 - closing as duplicate of TISTUD-4525.

JSON Source