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

Unified Diff: runtime/observatory/lib/src/elements/nav/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/menu_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/nav/menu_wrapper.dart b/runtime/observatory/lib/src/elements/nav/menu_wrapper.dart
index 04577c65237be17669c0adacfa863138f3396e33..3b287fe9ced4b246ecc9ba5eb0275463da545338 100644
--- a/runtime/observatory/lib/src/elements/nav/menu_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/nav/menu_wrapper.dart
@@ -21,17 +21,22 @@ class NavMenuElementWrapper extends HtmlElement {
String _anchor = '---';
String _link;
bool _last = false;
+
String get anchor => _anchor;
String get link => _link;
bool get last => _last;
+
set anchor(String value) {
- _anchor = value; render();
+ _anchor = value;
+ render();
}
set link(String value) {
- _link = value; render();
+ _link = value;
+ render();
}
set last(bool value) {
- _last = value; render();
+ _last = value;
+ render();
}
NavMenuElementWrapper.created() : super.created() {
@@ -51,7 +56,9 @@ class NavMenuElementWrapper extends HtmlElement {
void render() {
shadowRoot.children = [];
- if (_anchor == null || _last == null) return;
+ if (_anchor == null || _last == null) {
+ return;
+ }
shadowRoot.children = [
new NavMenuElement(_anchor, link: '#$_link', last: last,
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/menu_item_wrapper.dart ('k') | runtime/observatory/lib/src/elements/nav/notify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698