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

Unified Diff: runtime/observatory/lib/src/elements/nav/library_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/library_menu_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/nav/library_menu_wrapper.dart b/runtime/observatory/lib/src/elements/nav/library_menu_wrapper.dart
index 1097bdc654967bc904c247fa04cf6a33108255c3..8db0347d4b8293049315c281308b49ffb7347a03 100644
--- a/runtime/observatory/lib/src/elements/nav/library_menu_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/nav/library_menu_wrapper.dart
@@ -21,13 +21,17 @@ class NavLibraryMenuElementWrapper extends HtmlElement {
bool _last = false;
Library _library;
+
bool get last => _last;
Library get library => _library;
+
set last(bool value) {
- _last = value; render();
+ _last = value;
+ render();
}
set library(Library value) {
- _library = value; render();
+ _library = value;
+ render();
}
NavLibraryMenuElementWrapper.created() : super.created() {
@@ -45,7 +49,9 @@ class NavLibraryMenuElementWrapper extends HtmlElement {
void render() {
shadowRoot.children = [];
- if (_library == null || _last == null) return;
+ if (_library == null || _last == null) {
+ return;
+ }
shadowRoot.children = [
new NavLibraryMenuElement(library.isolate, library, last: last,
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/library_menu.dart ('k') | runtime/observatory/lib/src/elements/nav/menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698