| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library code_ref_element; | |
| 6 | |
| 7 import 'package:polymer/polymer.dart'; | |
| 8 import 'service_ref.dart'; | |
| 9 import 'package:observatory/service.dart'; | |
| 10 | |
| 11 @CustomTag('code-ref') | |
| 12 class CodeRefElement extends ServiceRefElement { | |
| 13 @observable Code get code => ref; | |
| 14 | |
| 15 refChanged(oldValue) { | |
| 16 super.refChanged(oldValue); | |
| 17 notifyPropertyChange(#code, 0, 1); | |
| 18 } | |
| 19 | |
| 20 CodeRefElement.created() : super.created(); | |
| 21 } | |
| OLD | NEW |