{ "id": "168468", "key": "TIMOB-24843", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": null, "resolutiondate": null, "created": "2017-06-17T13:17:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "close", "ios", "navigationWindow" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:55.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We introduced the {{popToRootWindow}} in 6.0.0 (TIMOB-23567) to allow the user to close all windows of a {{Ti.UI.iOS.NavigationWindow}} at once. While that works pretty well, the proxies behind the closed windows might still be active, causing a possible memory leak.\r\n\r\nAnother thing is that, currently, only the {{close}} event of the latest window is triggered, which is aligned to the native behavior of the {{viewDidDisappear}} delegate method. So firing all close events would be an improvement for more specific window-control.\r\n\r\nSo the changes described in this ticket are:\r\n1. Fire the {{close}} event on all pushed windows of the nav-window\r\n2. Cleanup all window-proxies after calling the internal API to improve the memory-management when using the method\r\n\r\n(Created per discussion in TIMOB-23567)", "attachment": [], "flagged": false, "summary": "iOS: When using \"Ti.UI.NavigationWindow.popToRootWindow\", fire \"close\" event for all sub-windows, cleanup proxy stack more properly", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }