Skip to content

Commit 4a43230

Browse files
committed
fix(core): various dart-specific fixes for core and facades
For some reason these showed up only now in internal Dart analyzer output.
1 parent 01ebff4 commit 4a43230

4 files changed

Lines changed: 16 additions & 3 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
library angular2.src.core.util;
2+
3+
// the ts version is needed only for TS, we don't need a Dart implementation
4+
// because there are no decorators in Dart.

modules/angular2/src/facade/browser.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
library angular2.src.facade.browser;
66

77
import 'dart:js' show context;
8+
import 'dart:html' show Location, window;
89

910
export 'dart:html'
1011
show
1112
document,
12-
location,
1313
window,
1414
Element,
1515
Node,
@@ -21,6 +21,8 @@ export 'dart:html'
2121
Location,
2222
EventListener;
2323

24+
Location get location => window.location;
25+
2426
final _gc = context['gc'];
2527

2628
void gc() {

modules/angular2/src/facade/collection.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
library facade.collection;
22

3-
import 'dart:collection' show IterableBase, Iterator;
3+
import 'dart:collection' show IterableBase;
44
import 'dart:convert' show JsonEncoder;
5-
export 'dart:core' show Map, List, Set;
5+
export 'dart:core' show Iterator, Map, List, Set;
66
import 'dart:math' show max, min;
77

88
var jsonEncoder = new JsonEncoder();
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
library angular2.src.facade.facade;
2+
3+
// Public API for Facade
4+
export "lang.dart" show Type;
5+
export "async.dart" show Stream, EventEmitter;
6+
export "exceptions.dart" show WrappedException;
7+
export "exception_handler.dart" show ExceptionHandler;

0 commit comments

Comments
 (0)