| 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 service_ref_element; | 5 library service_ref_element; |
| 6 | 6 |
| 7 import 'package:polymer/polymer.dart'; | 7 import 'package:polymer/polymer.dart'; |
| 8 import 'observatory_element.dart'; | 8 import 'observatory_element.dart'; |
| 9 | 9 |
| 10 @CustomTag('service-ref') | 10 @CustomTag('service-ref') |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 if (ref == null) { | 29 if (ref == null) { |
| 30 return ''; | 30 return ''; |
| 31 } | 31 } |
| 32 String name_key = internal ? 'name' : 'user_name'; | 32 String name_key = internal ? 'name' : 'user_name'; |
| 33 if (ref[name_key] != null) { | 33 if (ref[name_key] != null) { |
| 34 return ref[name_key]; | 34 return ref[name_key]; |
| 35 } | 35 } |
| 36 return ''; | 36 return ''; |
| 37 } | 37 } |
| 38 } | 38 } |
| OLD | NEW |