{ "id": "103446", "key": "TIMOB-11494", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-10-25T00:32:00.000+0000", "created": "2012-10-15T22:57:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-06-19T12:42:52.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "When child view is removed from parent view, parent's view does not report correct child count. Below is sample code that reproduce the issue.\r\n \r\nh4.Steps to reproduce:\r\n1. Load the below app.js\r\n2. Run it on Mobile web browser.\r\n\r\nExpected result:The text should display 1.\r\n\r\nActual Result: Instead, it incorrectly display 2.\r\n\r\n{code}\r\nvar topView = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n title: 'test'\r\n});\r\n\r\nvar testView = Ti.UI.createView();\r\nvar childView1 = Ti.UI.createView();\r\nvar childView2 = Ti.UI.createView();\r\ntestView.add(childView1);\r\ntestView.add(childView2);\r\n// remove second\r\ntestView.remove(childView2);\r\n\r\n// this should be 1 instead it returns 2\r\nvar childCount = testView.children.length;\r\nvar label = Ti.UI.createLabel({\r\n text: 'child count '+childCount,\r\n color: 'black'\r\n});\r\n\r\ntopView.add(label);\r\ntopView.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: remove() does not work on Child View of a sub view ", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.1.3, Ti SDK 2.1.2", "comment": { "comments": [ { "id": "224864", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-11559", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-25T00:32:00.000+0000", "updated": "2012-10-25T00:32:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }