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

Unified Diff: runtime/observatory/lib/src/elements/nav/refresh_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/refresh_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/nav/refresh_wrapper.dart b/runtime/observatory/lib/src/elements/nav/refresh_wrapper.dart
index 19e7cced3f834f371bc54f73c32a1498ddbdb40c..1989a10041d7f5020b994769137b15473274b97c 100644
--- a/runtime/observatory/lib/src/elements/nav/refresh_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/nav/refresh_wrapper.dart
@@ -20,13 +20,17 @@ class NavRefreshElementWrapper extends HtmlElement {
Function _callback;
String _label;
+
Function get callback => _callback;
String get label => _label;
+
set callback(Function value) {
- _callback = value; render();
+ _callback = value;
+ render();
}
set label(String value) {
- _label = value; render();
+ _label = value;
+ render();
}
NavRefreshElementWrapper.created() : super.created() {
@@ -44,7 +48,9 @@ class NavRefreshElementWrapper extends HtmlElement {
void render() {
shadowRoot.children = [];
- if (_callback == null || _label == null) return;
+ if (_callback == null || _label == null) {
+ return;
+ }
shadowRoot.children = [
new StyleElement()
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/refresh.dart ('k') | runtime/observatory/lib/src/elements/nav/top_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698