Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24843

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

    Details

    • Type: Improvement
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 6.1.0, Release 6.0.4
    • Fix Version/s: None
    • Component/s: iOS

      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code