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

TiAPI: Fire 'remove' event when a view is removed from it's parent



      I would like to have a remove event fired when a view is removed from a parent, with the parent in e.parent or e.source.

      This is particular useful if the removed view is provided by another controller and that controllers needs to cleanup.

      Of course you could work around this by manually notifying the other controller that its view has been removed, but if it's a list of views you will need to keep references to all their providing controllers as well.

      Just for the sake of feature symmetry... we could add add as well, allowing the providing controller to keep track of who's using it's view, possibly resetting state when removed and then added again. Or even taking a property of the parent (e.g. Window title) and use it on the view (re-display title there).




            • Assignee:
              fokkezb Fokke Zandbergen
            • Watchers:
              5 Start watching this issue


              • Created:

                Backbone Issue Sync

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

                  Git Integration