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

Unified Diff: runtime/observatory/lib/src/elements/code_ref_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/code_ref_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/code_ref_wrapper.dart b/runtime/observatory/lib/src/elements/code_ref_wrapper.dart
index 503a784ca03e23009c04be49611879f9aa8fb13b..f630f33a7aa2c57817e98110dcf0cc0517fba6b4 100644
--- a/runtime/observatory/lib/src/elements/code_ref_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/code_ref_wrapper.dart
@@ -20,8 +20,13 @@ class CodeRefElementWrapper extends HtmlElement {
static const tag = const Tag<CodeRefElementWrapper>('code-ref');
Code _code;
+
Code get ref => _code;
- void set ref(Code ref) { _code = ref; render(); }
+
+ void set ref(Code value) {
+ _code = value;
+ render();
+ }
CodeRefElementWrapper.created() : super.created() {
binder.registerCallback(this);
@@ -37,7 +42,9 @@ class CodeRefElementWrapper extends HtmlElement {
void render() {
shadowRoot.children = [];
- if (ref == null) return;
+ if (ref == null) {
+ return;
+ }
shadowRoot.children = [
new StyleElement()
« no previous file with comments | « runtime/observatory/lib/src/elements/code_ref.dart ('k') | runtime/observatory/lib/src/elements/css/shared.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698