{ "id": "80671", "key": "TIMOB-5383", "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": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-12T14:14:15.000+0000", "created": "2011-09-27T14:31:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_window", "parity", "qe-testadded" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-04T07:13: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Overview:\r\n\r\nThe children property of a Ti.UI.window is never null on Android where iOS it can be.\r\n\r\nExplanation:\r\n`var win = Ti.UI.createWindow();`\r\n\r\nOn iOS `win.children` will be 'null'. On Android, it will not be null. An Android developer can check: `win.children[0]' to see if it's null. However this will throw an error in iOS since it's really null and not an array.", "attachment": [], "flagged": false, "summary": "Android: Window children property is never null unlike iOS", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": "Android emulator, 2.2. 1.8 CI", "comment": { "comments": [ { "id": "203024", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'white' });\r\n\r\nTi.API.info('win.children: ' + win.children[0]);\r\n\r\nwin.open();\r\n{code}\r\n\r\nTested the code on the iOS simulator and on a Samsung Galaxy S2 with 2.1GA. Here is the console output for both devices: \"win.children: undefined\".\r\n\r\nExpected behavior, ticket closed.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-12T14:14:15.000+0000", "updated": "2012-07-12T14:14:15.000+0000" }, { "id": "214933", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120816212512\r\nTested with Titanium  Studio: 2.1.1.201207271312\r\nDevice - Samsung GALAXY Note Android 2.3.6, iOS 5.1 simulator\r\nMachine OS - MAC 10.8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-17T02:11:39.000+0000", "updated": "2012-08-17T02:11:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }