MarionetteLabs/marionette.inspector — pull request #32 by jasonLaster (2014-10-29 16:35:44+00:00)
Title: Add collection and composite views to the region tree

This fixes a bug where we were not capturing the collectionviews in the region tree.

If you look at the code, you'll see that when we found a collection view we'd get the children and return an array of subviews for each child. Now, what we do is make an object for sub views and add each child to that object along with the collection view indexed as `_view`.

This is also nice idiomatically because, the regionTree will now be a tree all the way down and not really this hybrid with arrays where we found collection views.

Thanks @jdaudier for reporting!