build(typescript): Migrated change detection to typescript
This commit is contained in:
@ -449,7 +449,9 @@ function _constructDependencies(factoryFunction: Function, dependencies: List<an
|
||||
function _dependenciesFor(typeOrFunc): List<any> {
|
||||
var params = reflector.parameters(typeOrFunc);
|
||||
if (isBlank(params)) return [];
|
||||
if (ListWrapper.any(params, (p) => isBlank(p))) throw new NoAnnotationError(typeOrFunc);
|
||||
if (ListWrapper.any(params, (p) => isBlank(p))) {
|
||||
throw new NoAnnotationError(typeOrFunc);
|
||||
}
|
||||
return ListWrapper.map(params, (p) => _extractToken(typeOrFunc, p));
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
library angular2.di.decorators;
|
||||
|
||||
/* This file is empty because, Dart does not have decorators. */
|
||||
|
||||
export 'annotations.dart';
|
@ -66,12 +66,12 @@ function _isWaiting(obj): boolean {
|
||||
* @exportedAs angular2/di
|
||||
*/
|
||||
export class Injector {
|
||||
_bindings: List<any>;
|
||||
_instances: List<any>;
|
||||
_parent: Injector;
|
||||
_defaultBindings: boolean;
|
||||
_asyncStrategy: _AsyncInjectorStrategy;
|
||||
_syncStrategy: _SyncInjectorStrategy;
|
||||
private _bindings: List<any>;
|
||||
private _instances: List<any>;
|
||||
private _parent: Injector;
|
||||
private _defaultBindings: boolean;
|
||||
private _asyncStrategy: _AsyncInjectorStrategy;
|
||||
private _syncStrategy: _SyncInjectorStrategy;
|
||||
|
||||
/**
|
||||
* Turns a list of binding definitions into an internal resolved list of resolved bindings.
|
||||
|
Reference in New Issue
Block a user