Chromium Code Reviews| 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 instance_ref_element; | 5 library instance_ref_element; |
| 6 | 6 |
| 7 import 'package:polymer/polymer.dart'; | 7 import 'package:polymer/polymer.dart'; |
| 8 import 'observatory_element.dart'; | 8 import 'service_ref.dart'; |
| 9 | 9 |
| 10 @CustomTag('instance-ref') | 10 @CustomTag('instance-ref') |
| 11 class InstanceRefElement extends ObservatoryElement { | 11 class InstanceRefElement extends ServiceRefElement { |
| 12 @published Map instance; | |
| 13 InstanceRefElement.created() : super.created(); | 12 InstanceRefElement.created() : super.created(); |
| 13 | |
| 14 String get name { | |
| 15 if (ref == null) { | |
| 16 return super.name; | |
|
turnidge
2013/12/19 20:39:29
What's this doing? Can this go away after class-v
Cutch
2013/12/19 21:53:58
ServiceRefElement provides a default implementatio
| |
| 17 } | |
| 18 return ref['preview']; | |
| 19 } | |
| 14 } | 20 } |
| OLD | NEW |