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

Unified Diff: runtime/observatory/lib/src/elements/nav/top_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/top_menu_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/nav/top_menu_wrapper.dart b/runtime/observatory/lib/src/elements/nav/top_menu_wrapper.dart
index edc5e278c67562b29f600ae37cf7dcab2fe2996d..db99fffe2b138c329e8666358835595ec6218a2c 100644
--- a/runtime/observatory/lib/src/elements/nav/top_menu_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/nav/top_menu_wrapper.dart
@@ -18,9 +18,12 @@ class NavTopMenuElementWrapper extends HtmlElement {
static const tag = const Tag<NavTopMenuElementWrapper>('top-nav-menu');
bool _last = false;
+
bool get last => _last;
+
set last(bool value) {
- _last = value; render();
+ _last = value;
+ render();
}
NavTopMenuElementWrapper.created() : super.created() {
@@ -38,7 +41,9 @@ class NavTopMenuElementWrapper extends HtmlElement {
void render() {
shadowRoot.children = [];
- if (_last == null) return;
+ if (_last == null) {
+ return;
+ }
shadowRoot.children = [
new NavTopMenuElement(last: last, queue: ObservatoryApplication.app.queue)
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/top_menu.dart ('k') | runtime/observatory/lib/src/elements/nav/vm_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698