| Index: runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart
|
| diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart b/runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart
|
| deleted file mode 100644
|
| index 05bf87ab45106ebbef52a3a813b1d87c759456b3..0000000000000000000000000000000000000000
|
| --- a/runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart
|
| +++ /dev/null
|
| @@ -1,51 +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 script_ref_element;
|
| -
|
| -import 'package:polymer/polymer.dart';
|
| -import 'service_ref.dart';
|
| -
|
| -@CustomTag('script-ref')
|
| -class ScriptRefElement extends ServiceRefElement {
|
| - @published int line = -1;
|
| -
|
| - String get url {
|
| - if ((app != null) && (ref != null)) {
|
| - var baseUrl = relativeLink(ref['id']);
|
| - if (line < 0) {
|
| - return baseUrl;
|
| - } else {
|
| - return '$baseUrl?line=$line';
|
| - }
|
| - }
|
| - return '';
|
| - }
|
| -
|
| - String get hoverText {
|
| - if (ref == null) {
|
| - return '';
|
| - }
|
| - if (line < 0) {
|
| - return ref['user_name'];
|
| - } else {
|
| - return "${ref['user_name']}:$line";
|
| - }
|
| - }
|
| -
|
| - String get name {
|
| - if (ref == null) {
|
| - return '';
|
| - }
|
| - var scriptUrl = ref['user_name'];
|
| - var shortScriptUrl = scriptUrl.substring(scriptUrl.lastIndexOf('/') + 1);
|
| - if (line < 0) {
|
| - return shortScriptUrl;
|
| - } else {
|
| - return "$shortScriptUrl:$line";
|
| - }
|
| - }
|
| -
|
| - ScriptRefElement.created() : super.created();
|
| -}
|
|
|