Titanium JIRA Archive
Alloy (ALOY)

[ALOY-76] Compiling of json style files break when a object value is used.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-19T11:52:06.000+0000
Affected Version/s2012 Sprint 14
Fix Version/s2012 Sprint 14
Componentsn/a
Labelsn/a
ReporterRussell McMahon
AssigneeRussell McMahon
Created2012-06-14T16:37:53.000+0000
Updated2014-06-22T13:21:02.000+0000

Description

/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/parse-js.js:271 throw new JS_Parse_Error(message, line, col, pos); when parsing: { ".name" : { "width": Ti.UI.FIT, "height": Ti.UI.FIT, "textAlign": Ti.UI.TEXT_ALIGNMENT_LEFT, "color": "black", "test2": {}, "left": 20 }, ".title": { "width": Ti.UI.FIT, "test2": {}, "test1": "text", "test3": 20 } } However it's okay with: { ".name" : { "width": Ti.UI.FIT, "height": Ti.UI.FIT, "textAlign": Ti.UI.TEXT_ALIGNMENT_LEFT, "color": "black", "left": 20 }, ".done" : { "width": Ti.UI.FIT, "height": Ti.UI.FIT, "textAlign": Ti.UI.TEXT_ALIGNMENT_RIGHT, "color": "red", "right": 20 }, ".title": { "width": Ti.UI.FIT, "test2": {}, "test1": "text", "test3": 20 } } Notice the rule .title has a object value for test2

Comments

No comments

JSON Source