MarionetteLabs/marionette.inspector — pull request #38 by jasonLaster (2014-11-05 02:57:48+00:00)
Title: Send actions for view remove and model destroy

This PR lays the foundation for a more responsive UI and Data pane.

+ send a "new" view component report
+ send a "remove" view component action
+ send a "destroy" model component action
+ save new views to a new `viewCollection`

With this new functionality, the data pane can stop showing destroyed models. And, the UI pane wont have to get all of the region tree data every time there's an update to the tree. Instead, we'll just have to send over a list of views in the current tree and for each view, it's region path and order (1st, 2nd in the tree).

As a general note, now that we're sending "new" view and model components over the wire, we should be cognizant that main of these events will be sent to the inspector when the inspector isn't on. So, the inspector will need to ask the agent for a list of views and models as welll. This feature, will be coming next.