Index: runtime/observatory/lib/src/app/page.dart |
diff --git a/runtime/observatory/lib/src/app/page.dart b/runtime/observatory/lib/src/app/page.dart |
index 6387fe153332085cee1b3b13e776bf77ffd478d7..9d624c1c2c52fd9508ac8c995b4694f2f54b232e 100644 |
--- a/runtime/observatory/lib/src/app/page.dart |
+++ b/runtime/observatory/lib/src/app/page.dart |
@@ -162,14 +162,23 @@ class InspectPage extends SimplePage { |
class ClassTreePage extends SimplePage { |
ClassTreePage(app) : super('class-tree', 'class-tree', app); |
+ final DivElement container = new DivElement(); |
+ |
+ @override |
+ void onInstall() { |
+ element = container; |
+ } |
+ |
void _visit(Uri uri) { |
super._visit(uri); |
getIsolate(uri).then((isolate) { |
- if (element != null) { |
- /// Update the page. |
- ClassTreeElement page = element; |
- page.isolate = isolate; |
- } |
+ container.children = [ |
+ new ClassTreeElement(app.vm, |
+ isolate, |
+ app.events, |
+ app.notifications, |
+ new ClassRepository(isolate)) |
+ ]; |
}); |
} |
} |