{ "id": "167204", "key": "TIMOB-24603", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-02T16:48:38.000+0000", "created": "2017-04-19T21:52:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19275", "description": "Patch release for 6.0.x regressions or important fixes", "name": "Release 6.0.3", "archived": false, "released": true, "releaseDate": "2017-03-22" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T23:29:50.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "H5. Issue Description \r\n\r\nUsing Ti.UI.View.removeAllChildren on a View element on Windows devices results in no children being removed. There is a viable workaround in iterating through each child of a View and removing it individually. However, trying to use removeAllChildren then using this workaround results in nothing happening (it is possible that removeAllChildren is somehow removing items from the View.children array without affecting the UI).\r\n\r\nh5. Steps to Reproduce\r\n\r\nHere is a bare bones project that reproduces this issue: https://github.com/bbuehler-axway-support/windows-removeAllChildren\r\n\r\nTo use this example app, add children to the view by clicking the \"Add Child View\" button. Clicking the \"Remove All Children\" button does nothing. Kill and relaunch the app. Add more child views. Clicking \"Remove Each Child\" button removes all children. Add more child views. Clicking the \"Remove All Children\" button still does nothing; without killing and relaunching the app, add more child views and remove them with \"Remove Each Child\". Child views added before clicking \"Remove All Children\" will remain while child views added afterward will be removed correctly.\r\n", "attachment": [], "flagged": false, "summary": "Windows: Remove all children is not working on windows devices", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 6.0.3 GA ", "closedSprints": [ { "id": 883, "state": "closed", "name": "2017 Sprint 09 SDK", "startDate": "2017-04-23T21:46:54.309Z", "endDate": "2017-05-07T21:46:00.000Z", "completeDate": "2017-05-08T00:25:44.276Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "417899", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/981", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-04-24T07:57:41.000+0000", "updated": "2017-04-24T07:57:41.000+0000" }, { "id": "418986", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in SDK version 6.2.0.v20170502104202 and 6.1.0.v20170502132103 test and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/982 (6_1_X)\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/981 (Master)", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T23:29:42.000+0000", "updated": "2017-05-02T23:29:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }