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

Unified Diff: runtime/observatory/lib/src/elements/source_link.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/source_link.dart
diff --git a/runtime/observatory/lib/src/elements/source_link.dart b/runtime/observatory/lib/src/elements/source_link.dart
index 02eec26bf8dee9b5dd9160c4ff850cead1ae5e01..110b8e1d19134ee8ee3cecb7b4e8946db24cec0d 100644
--- a/runtime/observatory/lib/src/elements/source_link.dart
+++ b/runtime/observatory/lib/src/elements/source_link.dart
@@ -44,16 +44,19 @@ class SourceLinkElement extends HtmlElement implements Renderable {
@override
void attached() {
super.attached();
- assert(location != null);
- _r.enable();
_repository.get(_location.script.id).then((script) {
_script = script;
_r.dirty();
});
+ _r.enable();
}
@override
- void detached() { super.detached(); children = []; _r.disable(notify: true); }
+ void detached() {
+ super.detached();
+ children = [];
+ _r.disable(notify: true);
+ }
Future render() async {
if (_script == null) {

Powered by Google App Engine
This is Rietveld 408576698