Index: runtime/observatory/lib/src/elements/action_link.dart |
diff --git a/runtime/observatory/lib/src/elements/action_link.dart b/runtime/observatory/lib/src/elements/action_link.dart |
deleted file mode 100644 |
index 74cc4902af49b301e47151fb835fa97e057d2cc9..0000000000000000000000000000000000000000 |
--- a/runtime/observatory/lib/src/elements/action_link.dart |
+++ /dev/null |
@@ -1,31 +0,0 @@ |
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
-library action_link_element; |
- |
-import 'package:polymer/polymer.dart'; |
- |
-@CustomTag('action-link') |
-class ActionLinkElement extends PolymerElement { |
- ActionLinkElement.created() : super.created(); |
- |
- @observable bool busy = false; |
- @published var callback = null; |
- @published String label = 'action'; |
- @published String color = null; |
- |
- void doAction(var a, var b, var c) { |
- if (busy) { |
- return; |
- } |
- if (callback != null) { |
- busy = true; |
- // TODO(turnidge): Track down why adding a dummy argument makes |
- // this work but having a no-argument callback doesn't. |
- callback(null).whenComplete(() { |
- busy = false; |
- }); |
- } |
- } |
-} |