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) { |