{ "id": "91722", "key": "TIMOB-9100", "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": "13418", "description": "Sprint 2012-13 Core", "name": "Sprint 2012-13 Core", "archived": true, "released": true, "releaseDate": "2012-07-01" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-01T04:42:21.000+0000", "created": "2012-05-10T13:59:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "module_window", "parity", "qe-testadded", "release-note" ], "versions": [], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T06:16:04.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": "h4. Problem Description\r\nIn the attempt of creating a function that will remove all the elements inside a view or window, we are getting a different behavior between android and ios, where in android, if you have a window with several attached elements, it will say that there is no children.\r\n\r\nh4. Actual Results\r\nThere is no children attached to the window, even if there are.\r\n\r\nh4. Expected results\r\nThe same behavior than in iOS.\r\n\r\nh4. Test Case\r\n1. Create mobile project. \r\n2. Paste this into app.js\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow();\r\nvar view = Ti.UI.createView();\r\nvar label = Ti.UI.createLabel();\r\nvar label2 = Ti.UI.createLabel();\r\nvar image = Ti.UI.createImageView({\r\n\turl:'KS_nav_ui.png',\r\n});\r\nvar view2 = Ti.UI.createView(); \r\nview2.add(label);\r\nview2.add(label2)\r\nview.add(view2);\r\nview.add(image);\r\nwin.add(view);\r\nwin.open();\r\n\r\nfunction do_clean(e,c){\r\n\tclean(c);\r\n\te.remove(c);\r\n\tTi.API.info( 'Deleted child at do_clean' );\r\n\treturn;\r\n}\r\n\r\nfunction clean(e){\t\r\n\tTi.API.info( 'Number of children: ' + e.children.length );\r\n\tif(e.children){\r\n\t\tfor(var i = 0; i