| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:html'; | 5 import 'dart:html'; |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:observatory/models.dart' as M show VM, EventRepository; | 7 import 'package:observatory/models.dart' as M show VM, EventRepository; |
| 8 import 'package:observatory/src/elements/helpers/nav_menu.dart'; | 8 import 'package:observatory/src/elements/helpers/nav_menu.dart'; |
| 9 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; | 9 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; |
| 10 import 'package:observatory/src/elements/helpers/tag.dart'; | 10 import 'package:observatory/src/elements/helpers/tag.dart'; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 super.detached(); | 60 super.detached(); |
| 61 children = []; | 61 children = []; |
| 62 _r.disable(notify: true); | 62 _r.disable(notify: true); |
| 63 _updatesSubscription.cancel(); | 63 _updatesSubscription.cancel(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void render() { | 66 void render() { |
| 67 final content = (_vm.isolates.map((isolate) { | 67 final content = (_vm.isolates.map((isolate) { |
| 68 return new NavMenuItemElement(isolate.name, | 68 return new NavMenuItemElement(isolate.name, |
| 69 queue: _r.queue, link: Uris.inspect(isolate)); | 69 queue: _r.queue, link: Uris.inspect(isolate)); |
| 70 }).toList()..addAll(_content)); | 70 }).toList() |
| 71 ..addAll(_content)); |
| 71 children = [navMenu(vm.displayName, link: Uris.vm(), content: content)]; | 72 children = [navMenu(vm.displayName, link: Uris.vm(), content: content)]; |
| 72 } | 73 } |
| 73 } | 74 } |
| OLD | NEW |