fix(core): various dart-specific fixes for core and facades

For some reason these showed up only now in internal Dart analyzer output.
This commit is contained in:
Igor Minar 2015-11-11 04:24:30 -08:00
parent 01ebff4080
commit 4a43230de4
4 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,4 @@
library angular2.src.core.util;
// the ts version is needed only for TS, we don't need a Dart implementation
// because there are no decorators in Dart.

View File

@ -5,11 +5,11 @@
library angular2.src.facade.browser;
import 'dart:js' show context;
import 'dart:html' show Location, window;
export 'dart:html'
show
document,
location,
window,
Element,
Node,
@ -21,6 +21,8 @@ export 'dart:html'
Location,
EventListener;
Location get location => window.location;
final _gc = context['gc'];
void gc() {

View File

@ -1,8 +1,8 @@
library facade.collection;
import 'dart:collection' show IterableBase, Iterator;
import 'dart:collection' show IterableBase;
import 'dart:convert' show JsonEncoder;
export 'dart:core' show Map, List, Set;
export 'dart:core' show Iterator, Map, List, Set;
import 'dart:math' show max, min;
var jsonEncoder = new JsonEncoder();

View File

@ -0,0 +1,7 @@
library angular2.src.facade.facade;
// Public API for Facade
export "lang.dart" show Type;
export "async.dart" show Stream, EventEmitter;
export "exceptions.dart" show WrappedException;
export "exception_handler.dart" show ExceptionHandler;