Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart

Issue 2211603002: Centralized event streams (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart b/runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart
index 35fc44896ed27000f8334f53878612dc4b85adaa..42a65de74c957aecd5fc43d328f74c3c1444549a 100644
--- a/runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart
@@ -21,13 +21,17 @@ class NavClassMenuElementWrapper extends HtmlElement {
bool _last = false;
Class _cls;
+
bool get last => _last;
Class get cls => _cls;
+
set last(bool value) {
- _last = value; render();
+ _last = value;
+ render();
}
set cls(Class value) {
- _cls = value; render();
+ _cls = value;
+ render();
}
NavClassMenuElementWrapper.created() : super.created() {
@@ -45,7 +49,9 @@ class NavClassMenuElementWrapper extends HtmlElement {
void render() {
shadowRoot.children = [];
- if (_cls == null || _last == null) return;
+ if (_cls == null || _last == null) {
+ return;
+ }
shadowRoot.children = [
new NavClassMenuElement(cls.isolate, cls, last: last,
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/bar.dart ('k') | runtime/observatory/lib/src/elements/nav/isolate_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698