refactor(core): move facades out of core
This is part of ongoing work to make core platform-independent.
BREAKING CHANGE
All private exports from 'angular2/src/core/facade/{lang,collection,exception_handler}' should be replaced with 'angular2/src/facade/{lang,collection,exception_handler}'.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {BrowserDomAdapter} from 'angular2/src/core/dom/browser_adapter';
|
||||
import {document, window} from 'angular2/src/core/facade/browser';
|
||||
import {NumberWrapper, isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {document, window} from 'angular2/src/facade/browser';
|
||||
import {NumberWrapper, isBlank} from 'angular2/src/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
|
||||
var DOM = new BrowserDomAdapter();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ library testing.fake_async;
|
||||
|
||||
import 'dart:async' show runZoned, ZoneSpecification;
|
||||
import 'package:quiver/testing/async.dart' as quiver;
|
||||
import 'package:angular2/src/core/facade/exceptions.dart' show BaseException;
|
||||
import 'package:angular2/src/facade/exceptions.dart' show BaseException;
|
||||
|
||||
const _u = const Object();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {global} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {global} from 'angular2/src/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {NgZoneZone} from 'angular2/src/core/zone/ng_zone';
|
||||
|
||||
var _scheduler;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {global} from 'angular2/src/core/facade/lang';
|
||||
import {global} from 'angular2/src/facade/lang';
|
||||
|
||||
|
||||
export interface NgMatchers extends jasmine.Matchers {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {Injector, provide, Injectable} from 'angular2/src/core/di';
|
||||
|
||||
import {Type, isPresent, isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {Promise} from 'angular2/src/core/facade/async';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {Type, isPresent, isBlank} from 'angular2/src/facade/lang';
|
||||
import {Promise} from 'angular2/src/facade/async';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {ViewMetadata} from '../core/metadata';
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
defaultKeyValueDiffers,
|
||||
ChangeDetectorGenConfig
|
||||
} from 'angular2/src/core/change_detection/change_detection';
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exceptions';
|
||||
import {ExceptionHandler} from 'angular2/src/facade/exceptions';
|
||||
import {ViewResolver} from 'angular2/src/core/linker/view_resolver';
|
||||
import {DirectiveResolver} from 'angular2/src/core/linker/directive_resolver';
|
||||
import {PipeResolver} from 'angular2/src/core/linker/pipe_resolver';
|
||||
@@ -38,8 +38,8 @@ import {TestComponentBuilder} from './test_component_builder';
|
||||
import {Injector} from 'angular2/src/core/di';
|
||||
import {ELEMENT_PROBE_PROVIDERS} from 'angular2/src/core/debug';
|
||||
|
||||
import {ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {FunctionWrapper, Type} from 'angular2/src/core/facade/lang';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {FunctionWrapper, Type} from 'angular2/src/facade/lang';
|
||||
|
||||
import {AppViewPool, APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/linker/view_pool';
|
||||
import {AppViewManager} from 'angular2/src/core/linker/view_manager';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Public Test Library for unit testing Angular2 Applications. Uses the
|
||||
* Jasmine framework.
|
||||
*/
|
||||
import {global} from 'angular2/src/core/facade/lang';
|
||||
import {global} from 'angular2/src/facade/lang';
|
||||
|
||||
import {bind} from 'angular2/src/core/di';
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import 'package:angular2/src/core/reflection/reflection_capabilities.dart';
|
||||
|
||||
import 'package:angular2/src/core/di/provider.dart' show bind;
|
||||
import 'package:angular2/src/core/di/injector.dart' show Injector;
|
||||
import 'package:angular2/src/core/facade/collection.dart' show StringMapWrapper;
|
||||
import 'package:angular2/src/facade/collection.dart' show StringMapWrapper;
|
||||
|
||||
import 'test_injector.dart';
|
||||
export 'test_injector.dart' show inject;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {global, isFunction, Math} from 'angular2/src/core/facade/lang';
|
||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {global, isFunction, Math} from 'angular2/src/facade/lang';
|
||||
import {NgZoneZone} from 'angular2/src/core/zone/ng_zone';
|
||||
|
||||
import {provide} from 'angular2/src/core/di';
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {
|
||||
isPresent,
|
||||
isString,
|
||||
RegExpWrapper,
|
||||
StringWrapper,
|
||||
RegExp
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {isPresent, isString, RegExpWrapper, StringWrapper, RegExp} from 'angular2/src/facade/lang';
|
||||
|
||||
export class Log {
|
||||
/** @internal */
|
||||
|
||||
Reference in New Issue
Block a user