Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24843] iOS: When using "Ti.UI.NavigationWindow.popToRootWindow", fire "close" event for all sub-windows, cleanup proxy stack more properly

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.1.0, Release 6.0.4
Fix Version/sn/a
ComponentsiOS
Labelsclose, ios, navigationWindow
ReporterHans Knöchel
AssigneeUnknown
Created2017-06-17T13:17:14.000+0000
Updated2018-02-28T19:55:55.000+0000

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. Another 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. So the changes described in this ticket are: 1. Fire the close event on all pushed windows of the nav-window 2. Cleanup all window-proxies after calling the internal API to improve the memory-management when using the method (Created per discussion in TIMOB-23567)

Comments

No comments

JSON Source