Titanium JIRA Archive
Alloy (ALOY)

[ALOY-499] Generated code contains undefined objects when a comma not needed is present on tss files

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-02-06T21:32:08.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.1.0, 2013 Sprint 03
ComponentsXML
Labelsn/a
ReporterCésar Cavazos
AssigneeTony Lukasavage
Created2013-02-06T00:10:28.000+0000
Updated2013-05-01T14:56:27.000+0000

Description

Bug

If there is a comma present at the end of an object and it's not needed then the generated code contains an extra property defined as: "undefined": undefined Removing the comma resolves the issues.

Test case

Sample code: https://gist.github.com/ccavazos/edf7b43f7195fb9aa88d

Comments

  1. Tony Lukasavage 2013-02-06

    Additional note, this only seems to happen on nested object, like font or some of the complex styles listed in the sample.
  2. Tony Lukasavage 2013-02-06

    Grammar updated and parser regenerated to eliminate the unnecessary undefined properties

JSON Source