OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library web_components.html_import_annotation; | 4 library web_components.html_import_annotation; |
5 | 5 |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import 'dart:html'; | 7 import 'dart:html'; |
8 import 'package:initialize/initialize.dart'; | 8 import 'package:initialize/initialize.dart'; |
9 import 'src/normalize_path.dart'; | 9 import 'src/normalize_path.dart'; |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 element.on['error'].listen((_) { | 27 element.on['error'].listen((_) { |
28 print('Error loading html import from path `$filePath`'); | 28 print('Error loading html import from path `$filePath`'); |
29 completer.complete(); | 29 completer.complete(); |
30 }), | 30 }), |
31 ]; | 31 ]; |
32 return completer.future.then((_) { | 32 return completer.future.then((_) { |
33 listeners.forEach((listener) => listener.cancel()); | 33 listeners.forEach((listener) => listener.cancel()); |
34 }); | 34 }); |
35 } | 35 } |
36 } | 36 } |
OLD | NEW |