Index: runtime/observatory/lib/src/elements/vm_connect_target.dart |
diff --git a/runtime/observatory/lib/src/elements/vm_connect_target.dart b/runtime/observatory/lib/src/elements/vm_connect_target.dart |
index 43a0cec2768201d08ebf20738d94ea8dbd969ced..c7c71ec113d72bc7ff842b3e8ede57cb11a418b6 100644 |
--- a/runtime/observatory/lib/src/elements/vm_connect_target.dart |
+++ b/runtime/observatory/lib/src/elements/vm_connect_target.dart |
@@ -16,9 +16,7 @@ class TargetEvent { |
} |
class VMConnectTargetElement extends HtmlElement implements Renderable { |
- |
- static const tag = |
- const Tag<VMConnectTargetElement>('vm-connect-target'); |
+ static const tag = const Tag<VMConnectTargetElement>('vm-connect-target'); |
RenderingScheduler<VMConnectTargetElement> _r; |
@@ -37,8 +35,8 @@ class VMConnectTargetElement extends HtmlElement implements Renderable { |
M.Target get target => _target; |
bool get current => _current; |
- factory VMConnectTargetElement(M.Target target, {bool current: false, |
- RenderingQueue queue}) { |
+ factory VMConnectTargetElement(M.Target target, |
+ {bool current: false, RenderingQueue queue}) { |
assert(target != null); |
assert(current != null); |
VMConnectTargetElement e = document.createElement(tag.name); |
@@ -77,7 +75,8 @@ class VMConnectTargetElement extends HtmlElement implements Renderable { |
..text = current ? '${target.name} (Connected)' : '${target.name}' |
..onClick.where(_filter).map(_toEvent).listen(_connect), |
new ButtonElement() |
- ..text = '✖ Remove' ..classes = ['delete-button'] |
+ ..text = '✖ Remove' |
+ ..classes = ['delete-button'] |
..onClick.map(_toEvent).listen(_delete) |
]; |
} |
@@ -95,7 +94,10 @@ class VMConnectTargetElement extends HtmlElement implements Renderable { |
} |
static bool _filter(MouseEvent event) { |
- return !(event.button > 0 || event.metaKey || event.ctrlKey || |
- event.shiftKey || event.altKey); |
+ return !(event.button > 0 || |
+ event.metaKey || |
+ event.ctrlKey || |
+ event.shiftKey || |
+ event.altKey); |
} |
} |