MarionetteLabs/marionette.inspector — pull request #87 by jasonLaster (2014-11-26 17:37:43+00:00)
Title: Ancestor classes

This PR is super great. No other way to put it. With it, we're able to show ALL of the class information about a view.

![](http://f.cl.ly/items/300O1z3Y1f0l2k0I0N0c/Image%202014-11-26%20at%2012.34.23%20PM.png)

For example, in this case we show that the listing card is an instance of the Card class, which descends from the Listing view, which is a Layout view. That's crazy cool.

Furthermore, all of the functions and properties are clickable so you can click into the `serializeData` method or `ensureElement`. It doesn't matter if a function has been overriden three times, clicking on each one will take you to the right place. It's that good! This is what we call winning.

----

#### how did we do all this black magic

The heart of it is `ancestorInfo` which traverses the class tree and gets all the properties and their path to the object. Everything else is just glue.