OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library observatory_element; | 5 library observatory_element; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 import 'package:observatory/app.dart'; | 9 import 'package:observatory/app.dart'; |
10 import 'package:polymer/polymer.dart'; | 10 import 'package:polymer/polymer.dart'; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 } else result.add(codeUnit); | 131 } else result.add(codeUnit); |
132 } | 132 } |
133 if (wasTruncated) { | 133 if (wasTruncated) { |
134 result.addAll("...".codeUnits); | 134 result.addAll("...".codeUnits); |
135 } else { | 135 } else { |
136 result.add("'".codeUnitAt(0)); | 136 result.add("'".codeUnitAt(0)); |
137 } | 137 } |
138 return new String.fromCharCodes(result); | 138 return new String.fromCharCodes(result); |
139 } | 139 } |
140 } | 140 } |
OLD | NEW |