build(typescript): Migrated change detection to typescript

This commit is contained in:
vsavkin
2015-05-01 14:05:19 -07:00
parent f0ef72d6cc
commit fa28b28d0a
45 changed files with 2343 additions and 2576 deletions

View File

@ -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));
}