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

Unified Diff: runtime/observatory/lib/src/elements/nav/notify.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.dart
diff --git a/runtime/observatory/lib/src/elements/nav/notify.dart b/runtime/observatory/lib/src/elements/nav/notify.dart
index ba99f014a411ed2ceb8283b0fa5c54b35c822bdc..1566a043884ea5d7827087de5d47c233c3092160 100644
--- a/runtime/observatory/lib/src/elements/nav/notify.dart
+++ b/runtime/observatory/lib/src/elements/nav/notify.dart
@@ -23,7 +23,9 @@ class NavNotifyElement extends HtmlElement implements Renderable {
StreamSubscription _subscription;
bool _notifyOnPause;
+
bool get notifyOnPause => _notifyOnPause;
+
set notifyOnPause(bool value) =>
_notifyOnPause = _r.checkAndReact(_notifyOnPause, value);
@@ -43,8 +45,8 @@ class NavNotifyElement extends HtmlElement implements Renderable {
@override
void attached() {
super.attached();
- _r.enable();
_subscription = _repository.onChange.listen((_) => _r.dirty());
+ _r.enable();
}
@override
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/menu_wrapper.dart ('k') | runtime/observatory/lib/src/elements/nav/notify_event.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698