{ "id": "103690", "key": "AC-2333", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-12-10T08:34:43.000+0000", "created": "2012-10-19T23:01:56.000+0000", "labels": [ "add", "array", "children", "component", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:21.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "On iOS, I can \"add\" children as an array to a component. On Android this crashes the application:\r\n\r\n{code}\r\n\r\nvar window = Ti.UI.createWindow({backgroundColor:'white'});\r\n\r\nvar btn1 = Ti.UI.createButton({title:'test1'});\r\nvar btn2 = Ti.UI.createButton({title:'test2', enabled: false, top: 100});\r\n\r\nwindow.add([btn1, btn2]);\r\n\r\n\r\nwindow.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Add children as array not working", "creator": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 2.2, SDK 3.0.0v20121019140116, OSX", "comment": { "comments": [ { "id": "230597", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Jan,\r\nThis isn't actually supported behavior. In theory it shouldn't work on iOS either. Admittedly we should perhaps fail a bit more gracefully.\r\nCheers.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T08:34:43.000+0000", "updated": "2012-12-10T08:34:43.000+0000" }, { "id": "230612", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Too bad this won't be implemented since in theory it should bring greater performance.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-12-10T11:53:23.000+0000", "updated": "2012-12-10T11:53:23.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }