{ "id": "114873", "key": "ALOY-669", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" }, { "id": "15488", "description": "2013 Sprint 11", "name": "2013 Sprint 11", "archived": true, "released": true, "releaseDate": "2013-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-24T14:06:33.000+0000", "created": "2013-05-23T21:28:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-24T13:34:51.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "When printing out a simple generated style array it sometimes contains entries that have \"undefined\" key entries, making them useless. For example, this is the JSON.stringify() version of the index style from the [basics/simple|] test app:\r\n\r\n{code:javascript}\r\n[ {\r\n isApi: true,\r\n priority: 1000.0003,\r\n key: \"Label\",\r\n style: {\r\n color: \"#000\",\r\n font: {\r\n fontSize: \"18dp\",\r\n fontWeight: \"bold\"\r\n },\r\n height: \"__ALLOY_EXPR__--Ti.UI.SIZE\",\r\n width: \"__ALLOY_EXPR__--Ti.UI.SIZE\"\r\n }\r\n}, {\r\n isApi: true,\r\n priority: 1000.0004,\r\n key: \"undefined\"\r\n}, {\r\n isId: true,\r\n priority: 100000.0002,\r\n key: \"index\",\r\n style: {\r\n backgroundColor: \"#fff\",\r\n fullscreen: false,\r\n exitOnClose: true\r\n }\r\n} ];\r\n{code}\r\n\r\nThis has not been an issue to this point because these values were simply unused in the compile process. Now that styles are going to be used at runtime (ALOY-210), they need to be as efficient as possible, which involved removing these useless entries. ", "attachment": [], "flagged": false, "summary": "Generated style arrays sometimes contain \"undefined\" keys", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "253840", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/134\r\n\r\nTesting to confirm that this bug is resolved can be done simply by running {{jake test:all}}, as part of the PR includes augmenting the compile testing to search the generated styles for invalid undefined style entries. If all those unit tests pass, then the bug is resolved.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-24T14:06:33.000+0000", "updated": "2013-05-24T14:06:33.000+0000" }, { "id": "259155", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed.\n\nTitanium SDK 3.1.2.v20130619101604\nAlloy 1.2.0\nAppcelerator Studio 3.1.1.201306131423\n\nAndroid 4.2.2 and iOS 6 devices.\n\nClosing. ", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-24T13:33:27.000+0000", "updated": "2013-06-24T13:33:27.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }