{ "id": "128793", "key": "TIMOB-16835", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2015-04-14T17:12:30.000+0000", "created": "2014-04-08T11:59:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "blackberry", "look1" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:22:14.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Following code outputs:\r\n\r\n[INFO] button1 type: [object TiUIButtonProxy]\r\n[INFO] children : []\r\n\r\n\r\n{code}\r\n\r\nvar mainWindow = Titanium.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Red Window'\r\n});\r\n\r\n\r\n\t// Create a Button.\r\n\tvar button1 = Ti.UI.createButton({\r\n\t\ttitle : 'button1',\r\n\t\theight : Ti.UI.SIZE,\r\n\t\twidth : Ti.UI.SIZE\r\n\t});\r\n\t\r\n\tTi.API.info(\"button1 type: \" + button1);\r\n\t\r\n\t\r\n\t// Add to the parent view.\r\n\tmainWindow.add(button1);\r\n\r\n\t// Listen for click events.\r\n\tbutton1.addEventListener('click', function() {\r\n\t\tTi.API.info('\\'button1\\' was clicked! : pre-eventListener');\r\n\t\t\r\n\t});\r\n\r\nTi.API.info('children : ' + JSON.stringify(mainWindow.getChildren()));\r\n{code}", "attachment": [], "flagged": false, "summary": "BlackBerry: Ti.UI.View getChildren returns empty array", "creator": { "name": "ssaracut", "key": "ssaracut", "displayName": "Steven Saracut", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "ssaracut", "key": "ssaracut", "displayName": "Steven Saracut", "active": true, "timeZone": "America/New_York" }, "environment": "current bb master", "comment": { "comments": [ { "id": "300200", "author": { "name": "ssaracut", "key": "ssaracut", "displayName": "Steven Saracut", "active": true, "timeZone": "America/New_York" }, "body": "Actually looking deeper in the code, how come Ti.UI.Window doesn't extend Ti.UI.View like android and ios which is how the API is documented?\n\nI guess this explains the ticket I opened a while ago about the scrollview not taking a window like ios and android.", "updateAuthor": { "name": "ssaracut", "key": "ssaracut", "displayName": "Steven Saracut", "active": true, "timeZone": "America/New_York" }, "created": "2014-04-08T14:44:51.000+0000", "updated": "2014-04-08T14:44:51.000+0000" }, { "id": "310680", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Since it appears to be working as expected, can we resolve?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T17:25:47.000+0000", "updated": "2014-06-24T17:25:47.000+0000" }, { "id": "349517", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Placing these items on hold for the moment based on community interest.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-14T17:12:30.000+0000", "updated": "2015-04-14T17:12:30.000+0000" }, { "id": "412854", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as BlackBerry is no longer supported by us.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:22:14.000+0000", "updated": "2017-03-16T20:22:14.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }