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 eval_link_element; | 5 library eval_link_element; |
6 | 6 |
7 import 'package:observatory/service.dart'; | 7 import 'package:observatory/service.dart'; |
8 import 'package:polymer/polymer.dart'; | 8 import 'package:polymer/polymer.dart'; |
9 | 9 |
10 @CustomTag('eval-link') | 10 @CustomTag('eval-link') |
(...skipping 14 matching lines...) Expand all Loading... |
25 busy = true; | 25 busy = true; |
26 result = null; | 26 result = null; |
27 callback(expr).then((ServiceObject obj) { | 27 callback(expr).then((ServiceObject obj) { |
28 result = obj; | 28 result = obj; |
29 }).whenComplete(() { | 29 }).whenComplete(() { |
30 busy = false; | 30 busy = false; |
31 }); | 31 }); |
32 } | 32 } |
33 } | 33 } |
34 } | 34 } |
OLD | NEW |