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

Unified Diff: runtime/observatory/lib/src/elements/nav/notify_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/notify_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/nav/notify_wrapper.dart b/runtime/observatory/lib/src/elements/nav/notify_wrapper.dart
index 76767278c14b5ac98bcbda1bcb823e0dad6f1fa0..58dbf39e72ecab4b232eabf0abb8f7e272acca17 100644
--- a/runtime/observatory/lib/src/elements/nav/notify_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/nav/notify_wrapper.dart
@@ -20,13 +20,17 @@ class NavNotifyElementWrapper extends HtmlElement {
NotificationRepository _notifications;
bool _notifyOnPause = true;
+
NotificationRepository get notifications => _notifications;
bool get notifyOnPause => _notifyOnPause;
+
set notifications(NotificationRepository value) {
- _notifications = value; render();
+ _notifications = value;
+ render();
}
set notifyOnPause(bool value) {
- _notifyOnPause = value; render();
+ _notifyOnPause = value;
+ render();
}
NavNotifyElementWrapper.created() : super.created() {
@@ -43,7 +47,9 @@ class NavNotifyElementWrapper extends HtmlElement {
void render() {
shadowRoot.children = [];
- if (_notifications == null) return;
+ if (_notifications == null) {
+ return;
+ }
shadowRoot.children = [
new StyleElement()
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/notify_exception.dart ('k') | runtime/observatory/lib/src/elements/nav/refresh.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698