{
"id": "120329",
"key": "ALOY-834",
"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": "15403",
"description": "Alloy 1.3.0",
"name": "Alloy 1.3.0",
"archived": false,
"released": true,
"releaseDate": "2013-12-20"
},
{
"id": "15672",
"description": "2013 Sprint 20",
"name": "2013 Sprint 20",
"archived": true,
"released": true,
"releaseDate": "2013-10-04"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2013-09-24T18:45:59.000+0000",
"created": "2013-09-23T02:50:41.000+0000",
"priority": {
"name": "Critical",
"id": "1"
},
"labels": [
"alloy",
"android",
"crash",
"menu",
"qe-testadded"
],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2013-10-14T20:44:26.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": "12329",
"name": "Runtime",
"description": "Generic bucket for uncategorized runtime issues"
},
{
"id": "12326",
"name": "XML",
"description": "View XML and parsing"
}
],
"description": "The alloy compiler is generating an addEventListener call on a tabGroup before generating a necessary createTabGroup call. The addEventListener is generated to create the Android menus. I'm pretty sure these were calls were generated in the correct order in Alloy 1.2.0 and possibly 1.2.1.\r\n\r\nline 48 of ScheduleGroup.js says\r\n\r\n{code:javascript}\r\n $.__views.ScheduleGroup.addEventListener(\"open\", __alloyId6);\r\n{code}\r\n\r\nlines 56-61 of SceduleGroup.js says\r\n\r\n{code:javascript}\r\n $.__views.ScheduleGroup = Ti.UI.createTabGroup({\r\n tabs: __alloyId7,\r\n id: \"ScheduleGroup\",\r\n activeTabIconTint: \"yellow\",\r\n tabsBackgroundSelectedColor: \"yellow\"\r\n });\r\n{code}\r\n\r\nObviously this is going to crash since $.__views.ScheduleGroup is referenced in line 48 before it is initialized in line 56-61.\r\n\r\nThis XML\r\n\r\n{code:xml}\r\n